Ejemplo n.º 1
0
 public UnitOfWork()
 {
     entities     = new CozyBlogEntities();
     categoryRepo = new CategoryRepository(entities);
     blogRepo     = new BlogRepository(entities);
     commentsRepo = new CommentsRepository(entities);
 }
Ejemplo n.º 2
0
 public UnitOfWork()
 {
     entities = new CozyBlogEntities();
     categoryRepo = new CategoryRepository(entities);
     blogRepo = new BlogRepository(entities);
     commentsRepo = new CommentsRepository(entities);
 }
Ejemplo n.º 3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing == true)
     {
         //someone want the deterministic release of all resources
         //Let us release all the managed resources
         entities = null;
     }
 }
Ejemplo n.º 4
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing == true)
     {
         //someone want the deterministic release of all resources
         //Let us release all the managed resources
         entities = null;
     }
 }
Ejemplo n.º 5
0
 public CategoryRepository(CozyBlogEntities entities)
 {
     this.entities = entities;
 }
Ejemplo n.º 6
0
 public CategoryRepository(CozyBlogEntities entities)
 {
     this.entities = entities;
 }
Ejemplo n.º 7
0
 public BlogRepository(CozyBlogEntities entities)
 {
     this.entities = entities;
 }
Ejemplo n.º 8
0
 public CommentsRepository(CozyBlogEntities entities)
 {
     this.entities = entities;
 }
Ejemplo n.º 9
0
 public CommentsRepository(CozyBlogEntities entities)
 {
     this.entities = entities;
 }
Ejemplo n.º 10
0
 public BlogRepository(CozyBlogEntities entities)
 {
     this.entities = entities;
 }