Exemplo n.º 1
0
        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>());
        }
Exemplo n.º 2
0
 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>());
     }
 }
Exemplo n.º 3
0
        }         // CreateEtlData

        private void CreateSp <T>() where T : class
        {
            Console.WriteLine("{0}", CodeToSql.GetCreateSp <T>());
        } // CreateSp