Esempio n. 1
0
 public GradeEntity(DataAccessLogic.tblGrade grade)
 {
     this.ID          = grade.ID;
     this.Name        = grade.Name;
     this.Description = grade.Description;
     this.CreatedBy   = grade.CreatedBy;
     this.CreatedDate = grade.CreatedDate;
 }
Esempio n. 2
0
        public T MapToModel <T>() where T : class
        {
            DataAccessLogic.tblGrade grade = new DataAccessLogic.tblGrade();
            grade.ID          = this.ID;
            grade.Name        = this.Name;
            grade.Description = this.Description;
            grade.CreatedBy   = this.CreatedBy;
            grade.CreatedDate = this.CreatedDate;

            return(grade as T);
        }