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