private static bool UpdateDBVersion(string module, int version) { var drVersion = new DRVersion(); if (drVersion.Find(module)) { drVersion.SetValue <int>(EF_Version.Version, version); return(drVersion.Update()); } return(false); }
private static bool InsertDBVersion(string module, int version) { var drVersion = new DRVersion(); drVersion.Find(module); var record = drVersion.AddRecord(); record.SetValue <string>(EF_Version.Module, module); record.SetValue <int>(EF_Version.Version, version); return(drVersion.Update()); }