コード例 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (context != null)
         {
             context.Dispose();
             context = null;
         }
     }
 }
コード例 #2
0
 public Repository()
 {
     context = new TaskManagerEntities();
     dbSet   = context.Set <T>();
 }
コード例 #3
0
 public GenericRepo(TaskManagerEntities context)
 {
     this.context = context;
     this.set     = context.Set <TEntity>();
 }