public static Administrator Map(AdministratorEntity administratorEntity, RegisteredUserEntity registeredUserEntity) { var administrator = registeredUserEntity.MapTo <Administrator>(); registeredUserEntity.MapTo(administrator); return(administrator); }
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); }
partial void DeleteAdministratorEntity(AdministratorEntity instance);
partial void UpdateAdministratorEntity(AdministratorEntity instance);
partial void InsertAdministratorEntity(AdministratorEntity instance);
public static void MapTo(this Administrator administrator, AdministratorEntity entity) { administrator.MapTo(entity.RegisteredUserEntity); administrator.MapTo((IHaveEmailAddressEntity)entity.RegisteredUserEntity); }