예제 #1
0
 protected bool Deactivate(ILocationAppearedInIssue entity)
 {
     // Deactivate it
     LocationAppearedInIssuesRepository.Deactivate(entity);
     // Try to Save Changes
     LocationAppearedInIssuesRepository.SaveChanges();
     // Finished!
     return(true);
 }
 public virtual bool AreEqual(ILocationAppearedInIssueModel model, ILocationAppearedInIssue entity)
 {
     return(EntityMapper.AreEqual(model, entity)
            // LocationAppearedInIssue Properties
            // <None>
            // Related Objects
            && model.LocationId == entity.LocationId &&
            model.AppearedInIssueId == entity.AppearedInIssueId
            );
 }
 public virtual bool AreEqual(ILocationAppearedInIssueModel model, ILocationAppearedInIssue entity)
 {
     return EntityMapper.AreEqual(model, entity)
         // LocationAppearedInIssue Properties
         // <None>
         // Related Objects
         && model.LocationId == entity.LocationId
         && model.AppearedInIssueId == entity.AppearedInIssueId
         ;
 }
예제 #4
0
 protected bool Remove(ILocationAppearedInIssue entity)
 {
     if (entity == null)
     {
         return(true);
     }                                    // No entity found to remove, consider it passed
     // Remove it
     LocationAppearedInIssuesRepository.Remove(entity);
     // Try to Save Changes
     LocationAppearedInIssuesRepository.SaveChanges();
     // Finished!
     return(true);
 }
        public virtual ILocationAppearedInIssueModel MapToModelListing(ILocationAppearedInIssue entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = EntityMapper.MapToModelListing <ILocationAppearedInIssue, LocationAppearedInIssueModel>(entity);

            // LocationAppearedInIssue Properties
            // <None>
            // Related Objects
            model.LocationId        = entity.LocationId;
            model.AppearedInIssueId = entity.AppearedInIssueId;
            // Return Entity
            return(model);
        }
 public virtual void MapToEntity(ILocationAppearedInIssueModel model, ref ILocationAppearedInIssue entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     EntityMapper.MapToEntity(model, ref entity);
     // LocationAppearedInIssue Properties
     // <None>
     // Related Objects
     entity.LocationId        = model.LocationId;
     entity.Location          = (Location)model.Location?.MapToEntity();
     entity.AppearedInIssueId = model.AppearedInIssueId;
     entity.AppearedInIssue   = (Issue)model.AppearedInIssue?.MapToEntity();
     // Associated Objects
     // <None>
 }
 public virtual void MapToEntity(ILocationAppearedInIssueModel model, ref ILocationAppearedInIssue entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     EntityMapper.MapToEntity(model, ref entity);
     // LocationAppearedInIssue Properties
     // <None>
     // Related Objects
     entity.LocationId = model.LocationId;
     entity.Location = (Location)model.Location?.MapToEntity();
     entity.AppearedInIssueId = model.AppearedInIssueId;
     entity.AppearedInIssue = (Issue)model.AppearedInIssue?.MapToEntity();
     // Associated Objects
     // <None>
 }
 public virtual ILocationAppearedInIssueModel MapToModel(ILocationAppearedInIssue entity, int currentDepth = 1)
 {
     currentDepth++;
     var model = EntityMapper.MapToModel<ILocationAppearedInIssue, LocationAppearedInIssueModel>(entity);
     // LocationAppearedInIssue Properties
     // <None>
     // Related Objects
     model.LocationId = entity.LocationId;
     model.Location = entity.Location?.MapToModel();
     model.AppearedInIssueId = entity.AppearedInIssueId;
     model.AppearedInIssue = entity.AppearedInIssue?.MapToModel();
     // Associated Objects
     // <None>
     // Return Entity
     return model;
 }
 public void Update(ILocationAppearedInIssue entity)
 {
     Context.SetModified(entity);
 }
 public void Remove(ILocationAppearedInIssue entity)
 {
     Context.LocationAppearedInIssues.Remove((LocationAppearedInIssue)entity);
 }
 public void Deactivate(ILocationAppearedInIssue entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public void Add(ILocationAppearedInIssue entity)
 {
     Context.LocationAppearedInIssues.Add((LocationAppearedInIssue)entity);
 }
예제 #13
0
 public void Deactivate(ILocationAppearedInIssue entity)
 {
     entity.Active = false;
     Update(entity);
 }
예제 #14
0
 public void Add(ILocationAppearedInIssue entity)
 {
     Context.LocationAppearedInIssues.Add((LocationAppearedInIssue)entity);
 }
 protected bool Deactivate(ILocationAppearedInIssue entity)
 {
     // Deactivate it
     LocationAppearedInIssuesRepository.Deactivate(entity);
     // Try to Save Changes
     LocationAppearedInIssuesRepository.SaveChanges();
     // Finished!
     return true;
 }
 public static void MapToEntity(this ILocationAppearedInIssueModel model, ref ILocationAppearedInIssue entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
 public static bool AreEqual(this ILocationAppearedInIssueModel model, ILocationAppearedInIssue entity)
 {
     return Mapper.AreEqual(model, entity);
 }
 protected bool Remove(ILocationAppearedInIssue entity)
 {
     if (entity == null) { return true; } // No entity found to remove, consider it passed
     // Remove it
     LocationAppearedInIssuesRepository.Remove(entity);
     // Try to Save Changes
     LocationAppearedInIssuesRepository.SaveChanges();
     // Finished!
     return true;
 }
 public static void MapToEntity(this ILocationAppearedInIssueModel model, ref ILocationAppearedInIssue entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
예제 #20
0
 public void Remove(ILocationAppearedInIssue entity)
 {
     Context.LocationAppearedInIssues.Remove((LocationAppearedInIssue)entity);
 }
 public static ILocationAppearedInIssueModel MapToModelListing(this ILocationAppearedInIssue entity, int currentDepth = 1)
 {
     return(Mapper.MapToModelListing(entity, currentDepth));
 }
예제 #22
0
 public void Update(ILocationAppearedInIssue entity)
 {
     Context.SetModified(entity);
 }
 public static bool AreEqual(this ILocationAppearedInIssueModel model, ILocationAppearedInIssue entity)
 {
     return(Mapper.AreEqual(model, entity));
 }