protected bool Deactivate(IMovieConcept entity)
 {
     // Deactivate it
     MovieConceptsRepository.Deactivate(entity);
     // Try to Save Changes
     MovieConceptsRepository.SaveChanges();
     // Finished!
     return(true);
 }
 public virtual bool AreEqual(IMovieConceptModel model, IMovieConcept entity)
 {
     return EntityMapper.AreEqual(model, entity)
         // MovieConcept Properties
         // <None>
         // Related Objects
         && model.MovieId == entity.MovieId
         && model.ConceptId == entity.ConceptId
         ;
 }
Exemplo n.º 3
0
 public virtual bool AreEqual(IMovieConceptModel model, IMovieConcept entity)
 {
     return(EntityMapper.AreEqual(model, entity)
            // MovieConcept Properties
            // <None>
            // Related Objects
            && model.MovieId == entity.MovieId &&
            model.ConceptId == entity.ConceptId
            );
 }
 protected bool Remove(IMovieConcept entity)
 {
     if (entity == null)
     {
         return(true);
     }                                    // No entity found to remove, consider it passed
     // Remove it
     MovieConceptsRepository.Remove(entity);
     // Try to Save Changes
     MovieConceptsRepository.SaveChanges();
     // Finished!
     return(true);
 }
Exemplo n.º 5
0
        public virtual IMovieConceptModel MapToModelListing(IMovieConcept entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = EntityMapper.MapToModelListing <IMovieConcept, MovieConceptModel>(entity);

            // MovieConcept Properties
            // <None>
            // Related Objects
            model.MovieId   = entity.MovieId;
            model.ConceptId = entity.ConceptId;
            // Return Entity
            return(model);
        }
Exemplo n.º 6
0
 public virtual void MapToEntity(IMovieConceptModel model, ref IMovieConcept entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     EntityMapper.MapToEntity(model, ref entity);
     // MovieConcept Properties
     // <None>
     // Related Objects
     entity.MovieId   = model.MovieId;
     entity.Movie     = (Movie)model.Movie?.MapToEntity();
     entity.ConceptId = model.ConceptId;
     entity.Concept   = (Concept)model.Concept?.MapToEntity();
     // Associated Objects
     // <None>
 }
 public virtual void MapToEntity(IMovieConceptModel model, ref IMovieConcept entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     EntityMapper.MapToEntity(model, ref entity);
     // MovieConcept Properties
     // <None>
     // Related Objects
     entity.MovieId = model.MovieId;
     entity.Movie = (Movie)model.Movie?.MapToEntity();
     entity.ConceptId = model.ConceptId;
     entity.Concept = (Concept)model.Concept?.MapToEntity();
     // Associated Objects
     // <None>
 }
 public virtual IMovieConceptModel MapToModel(IMovieConcept entity, int currentDepth = 1)
 {
     currentDepth++;
     var model = EntityMapper.MapToModel<IMovieConcept, MovieConceptModel>(entity);
     // MovieConcept Properties
     // <None>
     // Related Objects
     model.MovieId = entity.MovieId;
     model.Movie = entity.Movie?.MapToModel();
     model.ConceptId = entity.ConceptId;
     model.Concept = entity.Concept?.MapToModel();
     // Associated Objects
     // <None>
     // Return Entity
     return model;
 }
 public void Remove(IMovieConcept entity)
 {
     Context.MovieConcepts.Remove((MovieConcept)entity);
 }
 public void Add(IMovieConcept entity)
 {
     Context.MovieConcepts.Add((MovieConcept)entity);
 }
Exemplo n.º 11
0
 public static bool AreEqual(this IMovieConceptModel model, IMovieConcept entity)
 {
     return(Mapper.AreEqual(model, entity));
 }
Exemplo n.º 12
0
 public static IMovieConceptModel MapToModelListing(this IMovieConcept entity, int currentDepth = 1)
 {
     return(Mapper.MapToModelListing(entity, currentDepth));
 }
Exemplo n.º 13
0
 public static void MapToEntity(this IMovieConceptModel model, ref IMovieConcept entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
 public static void MapToEntity(this IMovieConceptModel model, ref IMovieConcept entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
 public void Deactivate(IMovieConcept entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public void Update(IMovieConcept entity)
 {
     Context.SetModified(entity);
 }
 public void Remove(IMovieConcept entity)
 {
     Context.MovieConcepts.Remove((MovieConcept)entity);
 }
 public void Deactivate(IMovieConcept entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public void Add(IMovieConcept entity)
 {
     Context.MovieConcepts.Add((MovieConcept)entity);
 }
 public void Update(IMovieConcept entity)
 {
     Context.SetModified(entity);
 }
 public static bool AreEqual(this IMovieConceptModel model, IMovieConcept entity)
 {
     return Mapper.AreEqual(model, entity);
 }