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