protected bool Deactivate(ITeamDisbandedInIssue entity)
 {
     // Deactivate it
     TeamDisbandedInIssuesRepository.Deactivate(entity);
     // Try to Save Changes
     TeamDisbandedInIssuesRepository.SaveChanges();
     // Finished!
     return(true);
 }
 public virtual bool AreEqual(ITeamDisbandedInIssueModel model, ITeamDisbandedInIssue entity)
 {
     return EntityMapper.AreEqual(model, entity)
         // TeamDisbandedInIssue Properties
         // <None>
         // Related Objects
         && model.TeamId == entity.TeamId
         && model.IssueId == entity.IssueId
         ;
 }
 public virtual bool AreEqual(ITeamDisbandedInIssueModel model, ITeamDisbandedInIssue entity)
 {
     return(EntityMapper.AreEqual(model, entity)
            // TeamDisbandedInIssue Properties
            // <None>
            // Related Objects
            && model.TeamId == entity.TeamId &&
            model.IssueId == entity.IssueId
            );
 }
 protected bool Remove(ITeamDisbandedInIssue entity)
 {
     if (entity == null)
     {
         return(true);
     }                                    // No entity found to remove, consider it passed
     // Remove it
     TeamDisbandedInIssuesRepository.Remove(entity);
     // Try to Save Changes
     TeamDisbandedInIssuesRepository.SaveChanges();
     // Finished!
     return(true);
 }
        public virtual ITeamDisbandedInIssueModel MapToModelListing(ITeamDisbandedInIssue entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = EntityMapper.MapToModelListing <ITeamDisbandedInIssue, TeamDisbandedInIssueModel>(entity);

            // TeamDisbandedInIssue Properties
            // <None>
            // Related Objects
            model.TeamId  = entity.TeamId;
            model.IssueId = entity.IssueId;
            // Return Entity
            return(model);
        }
 public virtual void MapToEntity(ITeamDisbandedInIssueModel model, ref ITeamDisbandedInIssue entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     EntityMapper.MapToEntity(model, ref entity);
     // TeamDisbandedInIssue Properties
     // <None>
     // Related Objects
     entity.TeamId = model.TeamId;
     entity.Team = (Team)model.Team?.MapToEntity();
     entity.IssueId = model.IssueId;
     entity.Issue = (Issue)model.Issue?.MapToEntity();
     // Associated Objects
     // <None>
 }
 public virtual void MapToEntity(ITeamDisbandedInIssueModel model, ref ITeamDisbandedInIssue entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     EntityMapper.MapToEntity(model, ref entity);
     // TeamDisbandedInIssue Properties
     // <None>
     // Related Objects
     entity.TeamId  = model.TeamId;
     entity.Team    = (Team)model.Team?.MapToEntity();
     entity.IssueId = model.IssueId;
     entity.Issue   = (Issue)model.Issue?.MapToEntity();
     // Associated Objects
     // <None>
 }
 public virtual ITeamDisbandedInIssueModel MapToModel(ITeamDisbandedInIssue entity, int currentDepth = 1)
 {
     currentDepth++;
     var model = EntityMapper.MapToModel<ITeamDisbandedInIssue, TeamDisbandedInIssueModel>(entity);
     // TeamDisbandedInIssue Properties
     // <None>
     // Related Objects
     model.TeamId = entity.TeamId;
     model.Team = entity.Team?.MapToModel();
     model.IssueId = entity.IssueId;
     model.Issue = entity.Issue?.MapToModel();
     // Associated Objects
     // <None>
     // Return Entity
     return model;
 }
 public void Remove(ITeamDisbandedInIssue entity)
 {
     Context.TeamDisbandedInIssues.Remove((TeamDisbandedInIssue)entity);
 }
 public void Add(ITeamDisbandedInIssue entity)
 {
     Context.TeamDisbandedInIssues.Add((TeamDisbandedInIssue)entity);
 }
 public static void MapToEntity(this ITeamDisbandedInIssueModel model, ref ITeamDisbandedInIssue entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
 public void Remove(ITeamDisbandedInIssue entity)
 {
     Context.TeamDisbandedInIssues.Remove((TeamDisbandedInIssue)entity);
 }
 public void Add(ITeamDisbandedInIssue entity)
 {
     Context.TeamDisbandedInIssues.Add((TeamDisbandedInIssue)entity);
 }
 public static void MapToEntity(this ITeamDisbandedInIssueModel model, ref ITeamDisbandedInIssue entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
 public void Deactivate(ITeamDisbandedInIssue entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public void Update(ITeamDisbandedInIssue entity)
 {
     Context.SetModified(entity);
 }
 public static ITeamDisbandedInIssueModel MapToModelListing(this ITeamDisbandedInIssue entity, int currentDepth = 1)
 {
     return(Mapper.MapToModelListing(entity, currentDepth));
 }
 public void Deactivate(ITeamDisbandedInIssue entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public static bool AreEqual(this ITeamDisbandedInIssueModel model, ITeamDisbandedInIssue entity)
 {
     return(Mapper.AreEqual(model, entity));
 }
 public void Update(ITeamDisbandedInIssue entity)
 {
     Context.SetModified(entity);
 }
 public static bool AreEqual(this ITeamDisbandedInIssueModel model, ITeamDisbandedInIssue entity)
 {
     return Mapper.AreEqual(model, entity);
 }