Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public override NHExt.Runtime.Model.BaseEntity Clone()
 {
     School cloneObj = new School();
     this.Clone(cloneObj);
     return cloneObj;
 }