public RelationshipTypeEntity(DataAccessLogic.tblRelationshipType relationshipType) { this.ID = relationshipType.ID; this.Name = relationshipType.Name; this.Description = relationshipType.Description; this.CreatedBy = relationshipType.CreatedBy; this.CreatedDate = relationshipType.CreatedDate; }
public T MapToModel <T>() where T : class { DataAccessLogic.tblRelationshipType relationshipType = new DataAccessLogic.tblRelationshipType(); relationshipType.ID = this.ID; relationshipType.Name = this.Name; relationshipType.Description = this.Description; relationshipType.CreatedBy = this.CreatedBy; relationshipType.CreatedDate = this.CreatedDate; return(relationshipType as T); }