public virtual void Clone(School cloneObj) { base.Clone(cloneObj); cloneObj.Name = this.Name; cloneObj.Country = this.Country; cloneObj.City = this.City; cloneObj.Url = this.Url; }
private static School Create(bool inList) { School entity = new School(); 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() { School cloneObj = new School(); this.Clone(cloneObj); return cloneObj; }