示例#1
0
 public static bool EnableVersionControl()
 {
     if (!ModelUtils.VersionControlTableExists())
     {
         if (ModelUtils.CreateVersionControlTable())
         {
             return(ModelUtils.SetVersion(0));
         }
         else
         {
             return(false);
         }
     }
     else
     {
         if (ModelUtils.GetVersion() == -1)
         {
             return(ModelUtils.SetVersion(0));
         }
     }
     return(true);
 }
示例#2
0
 public static int GetVersion()
 {
     return(ModelUtils.GetVersion());
 }