Exemple #1
0
 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;
 }
Exemple #2
0
        public static CandidateListEntity Map(this ContenderList list)
        {
            var entity = new CandidateListEntity {
                id = list.Id
            };

            list.MapTo(entity);
            return(entity);
        }
Exemple #3
0
        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,
            });
        }
Exemple #4
0
 partial void DeleteCandidateListEntity(CandidateListEntity instance);
Exemple #5
0
 partial void InsertCandidateListEntity(CandidateListEntity instance);