public virtual void Clone(City cloneObj) { base.Clone(cloneObj); cloneObj.Code = this.Code; cloneObj.Name = this.Name; if(this.PProvince != null){ cloneObj.PProvince = new IWEHAVE.ERP.CenterBE.Province(); cloneObj.PProvince.ID = this.PProvince.ID; }else{ cloneObj.PProvince = null; } }
private static City Create(bool inList) { City entity = new City(); 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() { City cloneObj = new City(); this.Clone(cloneObj); return cloneObj; }