public virtual void Clone(Project cloneObj) { base.Clone(cloneObj); cloneObj.ProName = this.ProName; cloneObj.ProAdress = this.ProAdress; cloneObj.Remark = this.Remark; cloneObj.UserCode = this.UserCode; cloneObj.Password = this.Password; cloneObj.Org = this.Org; cloneObj.OrgName = this.OrgName; cloneObj.GetDataUrl = this.GetDataUrl; cloneObj.ProClientAdress = this.ProClientAdress; }
private static Project Create(bool inList) { Project entity = new Project(); 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() { Project cloneObj = new Project(); this.Clone(cloneObj); return cloneObj; }