protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
          //free managed resources
         if (dataContext != null)
         {
             dataContext.Dispose();
             dataContext = null;
         }
     }
 }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         //free managed resources
         if (dataContext != null)
         {
             dataContext.Dispose();
             dataContext = null;
         }
     }
 }
 public IssueManagementRepository()
 {
     dataContext = new IssuesDataContext(SPContext.Current.Web.Url);
 }
 public IssueManagementRepository(IssuesDataContext dataContext)
 {
     this.dataContext = dataContext;
 }
 public IssueManagementRepository()
 {
     dataContext = new IssuesDataContext(SPContext.Current.Web.Url);
 }
 public IssueManagementRepository(IssuesDataContext dataContext)
 {
     this.dataContext = dataContext;
 }