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

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