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

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