Exemplo n.º 1
0
        public virtual void Clone(BusinessType cloneObj)
        {
            base.Clone(cloneObj);

            cloneObj.Code = this.Code;

            cloneObj.Name = this.Name;
        }
Exemplo n.º 2
0
 private static BusinessType Create(bool inList)
 {
     BusinessType entity = new BusinessType();
     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;
 }
Exemplo n.º 3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     BusinessType cloneObj = new BusinessType();
     this.Clone(cloneObj);
     return cloneObj;
 }