protected bool Deactivate(IVolumeTeam entity) { // Deactivate it VolumeTeamsRepository.Deactivate(entity); // Try to Save Changes VolumeTeamsRepository.SaveChanges(); // Finished! return(true); }
public virtual bool AreEqual(IVolumeTeamModel model, IVolumeTeam entity) { return EntityMapper.AreEqual(model, entity) // VolumeTeam Properties // <None> // Related Objects && model.VolumeId == entity.VolumeId && model.TeamId == entity.TeamId ; }
public virtual bool AreEqual(IVolumeTeamModel model, IVolumeTeam entity) { return(EntityMapper.AreEqual(model, entity) // VolumeTeam Properties // <None> // Related Objects && model.VolumeId == entity.VolumeId && model.TeamId == entity.TeamId ); }
protected bool Remove(IVolumeTeam entity) { if (entity == null) { return(true); } // No entity found to remove, consider it passed // Remove it VolumeTeamsRepository.Remove(entity); // Try to Save Changes VolumeTeamsRepository.SaveChanges(); // Finished! return(true); }
public virtual IVolumeTeamModel MapToModelListing(IVolumeTeam entity, int currentDepth = 1) { currentDepth++; var model = EntityMapper.MapToModelListing <IVolumeTeam, VolumeTeamModel>(entity); // VolumeTeam Properties // <None> // Related Objects model.VolumeId = entity.VolumeId; model.TeamId = entity.TeamId; // Return Entity return(model); }
public virtual void MapToEntity(IVolumeTeamModel model, ref IVolumeTeam entity, int currentDepth = 1) { currentDepth++; // Assign Base properties EntityMapper.MapToEntity(model, ref entity); // VolumeTeam Properties // <None> // Related Objects entity.VolumeId = model.VolumeId; entity.Volume = (Volume)model.Volume?.MapToEntity(); entity.TeamId = model.TeamId; entity.Team = (Team)model.Team?.MapToEntity(); // Associated Objects // <None> }
public virtual void MapToEntity(IVolumeTeamModel model, ref IVolumeTeam entity, int currentDepth = 1) { currentDepth++; // Assign Base properties EntityMapper.MapToEntity(model, ref entity); // VolumeTeam Properties // <None> // Related Objects entity.VolumeId = model.VolumeId; entity.Volume = (Volume)model.Volume?.MapToEntity(); entity.TeamId = model.TeamId; entity.Team = (Team)model.Team?.MapToEntity(); // Associated Objects // <None> }
public virtual IVolumeTeamModel MapToModel(IVolumeTeam entity, int currentDepth = 1) { currentDepth++; var model = EntityMapper.MapToModel<IVolumeTeam, VolumeTeamModel>(entity); // VolumeTeam Properties // <None> // Related Objects model.VolumeId = entity.VolumeId; model.Volume = entity.Volume?.MapToModel(); model.TeamId = entity.TeamId; model.Team = entity.Team?.MapToModel(); // Associated Objects // <None> // Return Entity return model; }
public void Remove(IVolumeTeam entity) { Context.VolumeTeams.Remove((VolumeTeam)entity); }
public void Add(IVolumeTeam entity) { Context.VolumeTeams.Add((VolumeTeam)entity); }
public static void MapToEntity(this IVolumeTeamModel model, ref IVolumeTeam entity, int currentDepth = 1) { Mapper.MapToEntity(model, ref entity, currentDepth); }
public void Deactivate(IVolumeTeam entity) { entity.Active = false; Update(entity); }
protected bool Remove(IVolumeTeam entity) { if (entity == null) { return true; } // No entity found to remove, consider it passed // Remove it VolumeTeamsRepository.Remove(entity); // Try to Save Changes VolumeTeamsRepository.SaveChanges(); // Finished! return true; }
public static bool AreEqual(this IVolumeTeamModel model, IVolumeTeam entity) { return Mapper.AreEqual(model, entity); }
public static bool AreEqual(this IVolumeTeamModel model, IVolumeTeam entity) { return(Mapper.AreEqual(model, entity)); }
public static void MapToEntity(this IVolumeTeamModel model, ref IVolumeTeam entity, int currentDepth = 1) { Mapper.MapToEntity(model, ref entity, currentDepth); }
public void Add(IVolumeTeam entity) { Context.VolumeTeams.Add((VolumeTeam)entity); }
public void Remove(IVolumeTeam entity) { Context.VolumeTeams.Remove((VolumeTeam)entity); }
public void Update(IVolumeTeam entity) { Context.SetModified(entity); }
public static IVolumeTeamModel MapToModelListing(this IVolumeTeam entity, int currentDepth = 1) { return(Mapper.MapToModelListing(entity, currentDepth)); }
public void Deactivate(IVolumeTeam entity) { entity.Active = false; Update(entity); }
public void Update(IVolumeTeam entity) { Context.SetModified(entity); }
protected bool Deactivate(IVolumeTeam entity) { // Deactivate it VolumeTeamsRepository.Deactivate(entity); // Try to Save Changes VolumeTeamsRepository.SaveChanges(); // Finished! return true; }