public virtual void Clone(Referee cloneObj) { base.Clone(cloneObj); cloneObj.Name = this.Name; cloneObj.Tel = this.Tel; cloneObj.Email = this.Email; cloneObj.Position = this.Position; cloneObj.Workplace = this.Workplace; cloneObj.Address = this.Address; if(this.PStudent != null){ cloneObj.PStudent = new IWEHAVE.ERP.CenterBE.Student(); cloneObj.PStudent.ID = this.PStudent.ID; }else{ cloneObj.PStudent = null; } }
private static Referee Create(bool inList) { Referee entity = new Referee(); 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() { Referee cloneObj = new Referee(); this.Clone(cloneObj); return cloneObj; }