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