Example #1
0
 protected bool Deactivate(ITeamAppearedInIssue entity)
 {
     // Deactivate it
     TeamAppearedInIssuesRepository.Deactivate(entity);
     // Try to Save Changes
     TeamAppearedInIssuesRepository.SaveChanges();
     // Finished!
     return(true);
 }
 public virtual bool AreEqual(ITeamAppearedInIssueModel model, ITeamAppearedInIssue entity)
 {
     return EntityMapper.AreEqual(model, entity)
         // TeamAppearedInIssue Properties
         // <None>
         // Related Objects
         && model.TeamId == entity.TeamId
         && model.IssueId == entity.IssueId
         ;
 }
Example #3
0
 public virtual bool AreEqual(ITeamAppearedInIssueModel model, ITeamAppearedInIssue entity)
 {
     return(EntityMapper.AreEqual(model, entity)
            // TeamAppearedInIssue Properties
            // <None>
            // Related Objects
            && model.TeamId == entity.TeamId &&
            model.IssueId == entity.IssueId
            );
 }
Example #4
0
 protected bool Remove(ITeamAppearedInIssue entity)
 {
     if (entity == null)
     {
         return(true);
     }                                    // No entity found to remove, consider it passed
     // Remove it
     TeamAppearedInIssuesRepository.Remove(entity);
     // Try to Save Changes
     TeamAppearedInIssuesRepository.SaveChanges();
     // Finished!
     return(true);
 }
Example #5
0
        public virtual ITeamAppearedInIssueModel MapToModelListing(ITeamAppearedInIssue entity, int currentDepth = 1)
        {
            currentDepth++;
            var model = EntityMapper.MapToModelListing <ITeamAppearedInIssue, TeamAppearedInIssueModel>(entity);

            // TeamAppearedInIssue Properties
            // <None>
            // Related Objects
            model.TeamId  = entity.TeamId;
            model.IssueId = entity.IssueId;
            // Return Entity
            return(model);
        }
Example #6
0
 public virtual void MapToEntity(ITeamAppearedInIssueModel model, ref ITeamAppearedInIssue entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     EntityMapper.MapToEntity(model, ref entity);
     // TeamAppearedInIssue 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(ITeamAppearedInIssueModel model, ref ITeamAppearedInIssue entity, int currentDepth = 1)
 {
     currentDepth++;
     // Assign Base properties
     EntityMapper.MapToEntity(model, ref entity);
     // TeamAppearedInIssue 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 ITeamAppearedInIssueModel MapToModel(ITeamAppearedInIssue entity, int currentDepth = 1)
 {
     currentDepth++;
     var model = EntityMapper.MapToModel<ITeamAppearedInIssue, TeamAppearedInIssueModel>(entity);
     // TeamAppearedInIssue 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 Update(ITeamAppearedInIssue entity)
 {
     Context.SetModified(entity);
 }
 public void Deactivate(ITeamAppearedInIssue entity)
 {
     entity.Active = false;
     Update(entity);
 }
 public void Remove(ITeamAppearedInIssue entity)
 {
     Context.TeamAppearedInIssues.Remove((TeamAppearedInIssue)entity);
 }
 public void Add(ITeamAppearedInIssue entity)
 {
     Context.TeamAppearedInIssues.Add((TeamAppearedInIssue)entity);
 }
 public static void MapToEntity(this ITeamAppearedInIssueModel model, ref ITeamAppearedInIssue entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
 public void Remove(ITeamAppearedInIssue entity)
 {
     Context.TeamAppearedInIssues.Remove((TeamAppearedInIssue)entity);
 }
 public void Add(ITeamAppearedInIssue entity)
 {
     Context.TeamAppearedInIssues.Add((TeamAppearedInIssue)entity);
 }
 protected bool Remove(ITeamAppearedInIssue entity)
 {
     if (entity == null) { return true; } // No entity found to remove, consider it passed
     // Remove it
     TeamAppearedInIssuesRepository.Remove(entity);
     // Try to Save Changes
     TeamAppearedInIssuesRepository.SaveChanges();
     // Finished!
     return true;
 }
 protected bool Deactivate(ITeamAppearedInIssue entity)
 {
     // Deactivate it
     TeamAppearedInIssuesRepository.Deactivate(entity);
     // Try to Save Changes
     TeamAppearedInIssuesRepository.SaveChanges();
     // Finished!
     return true;
 }
 public void Deactivate(ITeamAppearedInIssue entity)
 {
     entity.Active = false;
     Update(entity);
 }
Example #19
0
 public static void MapToEntity(this ITeamAppearedInIssueModel model, ref ITeamAppearedInIssue entity, int currentDepth = 1)
 {
     Mapper.MapToEntity(model, ref entity, currentDepth);
 }
 public void Update(ITeamAppearedInIssue entity)
 {
     Context.SetModified(entity);
 }
Example #21
0
 public static ITeamAppearedInIssueModel MapToModelListing(this ITeamAppearedInIssue entity, int currentDepth = 1)
 {
     return(Mapper.MapToModelListing(entity, currentDepth));
 }
Example #22
0
 public static bool AreEqual(this ITeamAppearedInIssueModel model, ITeamAppearedInIssue entity)
 {
     return(Mapper.AreEqual(model, entity));
 }
 public static bool AreEqual(this ITeamAppearedInIssueModel model, ITeamAppearedInIssue entity)
 {
     return Mapper.AreEqual(model, entity);
 }