示例#1
0
        public static Administrator Map(AdministratorEntity administratorEntity, RegisteredUserEntity registeredUserEntity)
        {
            var administrator = registeredUserEntity.MapTo <Administrator>();

            registeredUserEntity.MapTo(administrator);
            return(administrator);
        }
示例#2
0
        public static AdministratorEntity Map(this Administrator administrator)
        {
            var entity = new AdministratorEntity
            {
                id = administrator.Id,
                RegisteredUserEntity = new RegisteredUserEntity {
                    id = administrator.Id
                },
            };

            administrator.MapTo(entity);
            return(entity);
        }
示例#3
0
 partial void DeleteAdministratorEntity(AdministratorEntity instance);
示例#4
0
 partial void UpdateAdministratorEntity(AdministratorEntity instance);
示例#5
0
 partial void InsertAdministratorEntity(AdministratorEntity instance);
示例#6
0
 public static void MapTo(this Administrator administrator, AdministratorEntity entity)
 {
     administrator.MapTo(entity.RegisteredUserEntity);
     administrator.MapTo((IHaveEmailAddressEntity)entity.RegisteredUserEntity);
 }