protected bool Deactivate(IEpisodeCharacterFirstAppearance entity) { // Deactivate it EpisodeCharacterFirstAppearancesRepository.Deactivate(entity); // Try to Save Changes EpisodeCharacterFirstAppearancesRepository.SaveChanges(); // Finished! return(true); }
public virtual bool AreEqual(IEpisodeCharacterFirstAppearanceModel model, IEpisodeCharacterFirstAppearance entity) { return EntityMapper.AreEqual(model, entity) // EpisodeCharacterFirstAppearance Properties // <None> // Related Objects && model.EpisodeId == entity.EpisodeId && model.CharacterId == entity.CharacterId ; }
public virtual bool AreEqual(IEpisodeCharacterFirstAppearanceModel model, IEpisodeCharacterFirstAppearance entity) { return(EntityMapper.AreEqual(model, entity) // EpisodeCharacterFirstAppearance Properties // <None> // Related Objects && model.EpisodeId == entity.EpisodeId && model.CharacterId == entity.CharacterId ); }
protected bool Remove(IEpisodeCharacterFirstAppearance entity) { if (entity == null) { return(true); } // No entity found to remove, consider it passed // Remove it EpisodeCharacterFirstAppearancesRepository.Remove(entity); // Try to Save Changes EpisodeCharacterFirstAppearancesRepository.SaveChanges(); // Finished! return(true); }
public virtual IEpisodeCharacterFirstAppearanceModel MapToModelListing(IEpisodeCharacterFirstAppearance entity, int currentDepth = 1) { currentDepth++; var model = EntityMapper.MapToModelListing <IEpisodeCharacterFirstAppearance, EpisodeCharacterFirstAppearanceModel>(entity); // EpisodeCharacterFirstAppearance Properties // <None> // Related Objects model.EpisodeId = entity.EpisodeId; model.CharacterId = entity.CharacterId; // Return Entity return(model); }
public virtual void MapToEntity(IEpisodeCharacterFirstAppearanceModel model, ref IEpisodeCharacterFirstAppearance entity, int currentDepth = 1) { currentDepth++; // Assign Base properties EntityMapper.MapToEntity(model, ref entity); // EpisodeCharacterFirstAppearance Properties // <None> // Related Objects entity.EpisodeId = model.EpisodeId; entity.Episode = (Episode)model.Episode?.MapToEntity(); entity.CharacterId = model.CharacterId; entity.Character = (Character)model.Character?.MapToEntity(); // Associated Objects // <None> }
public virtual void MapToEntity(IEpisodeCharacterFirstAppearanceModel model, ref IEpisodeCharacterFirstAppearance entity, int currentDepth = 1) { currentDepth++; // Assign Base properties EntityMapper.MapToEntity(model, ref entity); // EpisodeCharacterFirstAppearance Properties // <None> // Related Objects entity.EpisodeId = model.EpisodeId; entity.Episode = (Episode)model.Episode?.MapToEntity(); entity.CharacterId = model.CharacterId; entity.Character = (Character)model.Character?.MapToEntity(); // Associated Objects // <None> }
public virtual IEpisodeCharacterFirstAppearanceModel MapToModel(IEpisodeCharacterFirstAppearance entity, int currentDepth = 1) { currentDepth++; var model = EntityMapper.MapToModel<IEpisodeCharacterFirstAppearance, EpisodeCharacterFirstAppearanceModel>(entity); // EpisodeCharacterFirstAppearance Properties // <None> // Related Objects model.EpisodeId = entity.EpisodeId; model.Episode = entity.Episode?.MapToModel(); model.CharacterId = entity.CharacterId; model.Character = entity.Character?.MapToModel(); // Associated Objects // <None> // Return Entity return model; }
protected bool Remove(IEpisodeCharacterFirstAppearance entity) { if (entity == null) { return true; } // No entity found to remove, consider it passed // Remove it EpisodeCharacterFirstAppearancesRepository.Remove(entity); // Try to Save Changes EpisodeCharacterFirstAppearancesRepository.SaveChanges(); // Finished! return true; }
protected bool Deactivate(IEpisodeCharacterFirstAppearance entity) { // Deactivate it EpisodeCharacterFirstAppearancesRepository.Deactivate(entity); // Try to Save Changes EpisodeCharacterFirstAppearancesRepository.SaveChanges(); // Finished! return true; }
public void Update(IEpisodeCharacterFirstAppearance entity) { Context.SetModified(entity); }
public void Deactivate(IEpisodeCharacterFirstAppearance entity) { entity.Active = false; Update(entity); }
public void Remove(IEpisodeCharacterFirstAppearance entity) { Context.EpisodeCharacterFirstAppearances.Remove((EpisodeCharacterFirstAppearance)entity); }
public void Add(IEpisodeCharacterFirstAppearance entity) { Context.EpisodeCharacterFirstAppearances.Add((EpisodeCharacterFirstAppearance)entity); }
public void Update(IEpisodeCharacterFirstAppearance entity) { Context.SetModified(entity); }
public void Remove(IEpisodeCharacterFirstAppearance entity) { Context.EpisodeCharacterFirstAppearances.Remove((EpisodeCharacterFirstAppearance)entity); }
public void Deactivate(IEpisodeCharacterFirstAppearance entity) { entity.Active = false; Update(entity); }
public void Add(IEpisodeCharacterFirstAppearance entity) { Context.EpisodeCharacterFirstAppearances.Add((EpisodeCharacterFirstAppearance)entity); }
public static void MapToEntity(this IEpisodeCharacterFirstAppearanceModel model, ref IEpisodeCharacterFirstAppearance entity, int currentDepth = 1) { Mapper.MapToEntity(model, ref entity, currentDepth); }
public static IEpisodeCharacterFirstAppearanceModel MapToModelListing(this IEpisodeCharacterFirstAppearance entity, int currentDepth = 1) { return(Mapper.MapToModelListing(entity, currentDepth)); }
public static void MapToEntity(this IEpisodeCharacterFirstAppearanceModel model, ref IEpisodeCharacterFirstAppearance entity, int currentDepth = 1) { Mapper.MapToEntity(model, ref entity, currentDepth); }
public static bool AreEqual(this IEpisodeCharacterFirstAppearanceModel model, IEpisodeCharacterFirstAppearance entity) { return Mapper.AreEqual(model, entity); }
public static bool AreEqual(this IEpisodeCharacterFirstAppearanceModel model, IEpisodeCharacterFirstAppearance entity) { return(Mapper.AreEqual(model, entity)); }