Exemple #1
0
 public SubCityEntity(DataAccessLogic.tblSubCity subCity)
 {
     this.ID          = subCity.ID;
     this.Name        = subCity.Name;
     this.Description = subCity.Description;
     this.CreatedBy   = subCity.CreatedBy;
     this.CreatedDate = subCity.CreatedDate;
 }
Exemple #2
0
        public T MapToModel <T>() where T : class
        {
            DataAccessLogic.tblSubCity subCity = new DataAccessLogic.tblSubCity();
            subCity.ID          = this.ID;
            subCity.Name        = this.Name;
            subCity.Description = this.Description;
            subCity.CreatedBy   = this.CreatedBy;
            subCity.CreatedDate = this.CreatedDate;

            return(subCity as T);
        }