public void SaveVcs(Vcs vcs) { if (vcs.Operate == DBConst.OPT_DEFAULT) { vcs.Version += 1; } if (vcs.Operate > DBConst.OPT_INSERT) { vcs.Operate += 1; } vcs.UserCode = _UserModel.Code; vcs.UpdateTime = DateTime.Now; if (!CharUtil.IsValidateHash(vcs.Id)) { vcs.Id = HashUtil.UtcTimeInEnc(false); vcs.CreateTime = vcs.UpdateTime; } _DbEngine.Save(vcs); }
public void RemoveVcs(Vcs vcs) { vcs.Operate = DBConst.OPT_DELETE; vcs.Version += 1; _DbEngine.Save(vcs); }
/// <summary> /// 物理删除 /// </summary> /// <param name="vcs"></param> public void DeleteVcs(Vcs vcs) { _DbEngine.Delete(vcs); }
public void SaveKey(Vcs vcs) { _DbEngine.Save(vcs); }
/// <summary> /// 物理删除 /// </summary> /// <param name="vcs"></param> public void DeleteVcs(Vcs vcs) { Container.Delete(vcs); }
public void RemoveVcs(Vcs vcs) { vcs.Operate = DBConst.OPT_DELETE; vcs.Version += 1; Container.Store(vcs); }