public virtual bool AreEqual(ILocationStoryArcModel model, ILocationStoryArc entity)
 {
     return EntityMapper.AreEqual(model, entity)
         // LocationStoryArc Properties
         // <None>
         // Related Objects
         && model.LocationId == entity.LocationId
         && model.StoryArcId == entity.StoryArcId
         ;
 }
 public virtual void MapToEntity(ILocationStoryArcModel model, ref ILocationStoryArc entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     EntityMapper.MapToEntity(model, ref entity);
     // LocationStoryArc Properties
     // <None>
     // Related Objects
     entity.LocationId = model.LocationId;
     entity.Location = (Location)model.Location?.MapToEntity();
     entity.StoryArcId = model.StoryArcId;
     entity.StoryArc = (StoryArc)model.StoryArc?.MapToEntity();
     // Associated Objects
     // <None>
 }
 public virtual ILocationStoryArcModel MapToModel(ILocationStoryArc entity, int currentDepth = 1)
 {
     currentDepth++;
     var model = EntityMapper.MapToModel<ILocationStoryArc, LocationStoryArcModel>(entity);
     // LocationStoryArc Properties
     // <None>
     // Related Objects
     model.LocationId = entity.LocationId;
     model.Location = entity.Location?.MapToModel();
     model.StoryArcId = entity.StoryArcId;
     model.StoryArc = entity.StoryArc?.MapToModel();
     // Associated Objects
     // <None>
     // Return Entity
     return model;
 }
Пример #4
0
        public virtual ILocationStoryArcModel MapToModel(ILocationStoryArc entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = EntityMapper.MapToModel <ILocationStoryArc, LocationStoryArcModel>(entity);

            // LocationStoryArc Properties
            // <None>
            // Related Objects
            model.LocationId = entity.LocationId;
            model.Location   = entity.Location?.MapToModel();
            model.StoryArcId = entity.StoryArcId;
            model.StoryArc   = entity.StoryArc?.MapToModel();
            // Associated Objects
            // <None>
            // Return Entity
            return(model);
        }
Пример #5
0
 public static ILocationStoryArcModel MapToModelListing(this ILocationStoryArc entity, int currentDepth = 1)
 {
     return(Mapper.MapToModelListing(entity, currentDepth));
 }
 public void Add(ILocationStoryArc entity)
 {
     Context.LocationStoryArcs.Add((LocationStoryArc)entity);
 }
 public static void MapToEntity(this ILocationStoryArcModel model, ref ILocationStoryArc entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
Пример #8
0
 public static bool AreEqual(this ILocationStoryArcModel model, ILocationStoryArc entity)
 {
     return(Mapper.AreEqual(model, entity));
 }
 public void Update(ILocationStoryArc entity)
 {
     Context.SetModified(entity);
 }
 public static bool AreEqual(this ILocationStoryArcModel model, ILocationStoryArc entity)
 {
     return Mapper.AreEqual(model, entity);
 }
 public void Deactivate(ILocationStoryArc entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public void Remove(ILocationStoryArc entity)
 {
     Context.LocationStoryArcs.Remove((LocationStoryArc)entity);
 }
Пример #13
0
 public static void MapToEntity(this ILocationStoryArcModel model, ref ILocationStoryArc entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
 public void Update(ILocationStoryArc entity)
 {
     Context.SetModified(entity);
 }
 public void Deactivate(ILocationStoryArc entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public void Remove(ILocationStoryArc entity)
 {
     Context.LocationStoryArcs.Remove((LocationStoryArc)entity);
 }
 public void Add(ILocationStoryArc entity)
 {
     Context.LocationStoryArcs.Add((LocationStoryArc)entity);
 }