Пример #1
0
 public static void Update()
 {
     if (ScriptsPath.NotIsNullOrEmpty())
     {
         StreamWriter fileWrite = new StreamWriter(Path.Combine(ScriptsPath, "ScriptUpdate.sql"), false);
         GetSchemaUpdate().Execute((str) =>
         {
             fileWrite.Write(str);
         }, true);
         fileWrite.Close();
     }
     else
     {
         GetSchemaUpdate().Execute(false, true);
     }
 }
Пример #2
0
 public static void Create()
 {
     Create(ScriptsPath.NotIsNullOrEmpty());
 }