public static void MapTo(this ContenderList list, CandidateListEntity entity) { entity.name = list.Name; entity.ownerId = list.OwnerId; entity.sharedWithId = list.SharedWithId; entity.createdTime = list.CreatedTime; entity.isDeleted = list.IsDeleted; entity.listType = list.ListType; }
public static CandidateListEntity Map(this ContenderList list) { var entity = new CandidateListEntity { id = list.Id }; list.MapTo(entity); return(entity); }
public static T MapTo <T>(this CandidateListEntity entity) where T : ContenderList, new() { if (entity == null) { return(null); } return(new T { Id = entity.id, Name = entity.name, OwnerId = entity.ownerId, SharedWithId = entity.sharedWithId, CreatedTime = entity.createdTime, IsDeleted = entity.isDeleted, ListType = entity.listType, }); }
partial void DeleteCandidateListEntity(CandidateListEntity instance);
partial void InsertCandidateListEntity(CandidateListEntity instance);