示例#1
0
        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);
        }
示例#2
0
        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());
        }