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