public void TestClassToDbTableCreate() { // Console.WriteLine(CodeToSql.GetCreateTable<CampaignSourceRef>()); // Console.WriteLine(CodeToSql.GetCreateSp<CampaignSourceRef>()); Console.WriteLine(CodeToSql.GetCreateTable <DbTable>()); Console.WriteLine(CodeToSql.GetCreateTable <OtherTable>()); Console.WriteLine(CodeToSql.GetCreateSp <DbTable>()); Console.WriteLine(CodeToSql.GetCreateSp <OtherTable>()); }
public static void SaveSp <T>() where T : class { using (StreamWriter sw = new StreamWriter(Folder + typeof(T).Name + "Save.sql", true)) { sw.WriteLine(CodeToSql.GetCreateSp <T>()); } }
} // CreateEtlData private void CreateSp <T>() where T : class { Console.WriteLine("{0}", CodeToSql.GetCreateSp <T>()); } // CreateSp