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 ; }
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 ); }
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); }
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); }
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); }
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 static ITeamAppearedInIssueModel MapToModelListing(this ITeamAppearedInIssue entity, int currentDepth = 1) { return(Mapper.MapToModelListing(entity, currentDepth)); }
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); }