public virtual void Clone(LoginLogger cloneObj) { base.Clone(cloneObj); cloneObj.User = this.User; cloneObj.Name = this.Name; cloneObj.IP = this.IP; cloneObj.Success = this.Success; cloneObj.ErrorMsg = this.ErrorMsg; cloneObj.LoginDate = this.LoginDate; }
private static LoginLogger Create(bool inList) { LoginLogger entity = new LoginLogger(); entity.ID = NHExt.Runtime.Util.EntityGuidHelper.New(); entity.EntityState = NHExt.Runtime.Enums.EntityState.Add; if(inList){ if(Session.Current != null){ Session.Current.InList(entity); } } return entity; }
public override NHExt.Runtime.Model.BaseEntity Clone() { LoginLogger cloneObj = new LoginLogger(); this.Clone(cloneObj); return cloneObj; }