public virtual void Clone(ProjectLogin cloneObj) { base.Clone(cloneObj); cloneObj.Address = this.Address; cloneObj.UserName = this.UserName; cloneObj.Password = this.Password; cloneObj.LoginDate = this.LoginDate; cloneObj.IsSuccess = this.IsSuccess; }
private static ProjectLogin Create(bool inList) { ProjectLogin entity = new ProjectLogin(); 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() { ProjectLogin cloneObj = new ProjectLogin(); this.Clone(cloneObj); return cloneObj; }