Example #1
0
 public EfRepository()
 {
     _context = (SystemContext)CallContext.GetData("SystemContext");
     if (_context == null)
     {
         _context = new SystemContext();
         CallContext.SetData("SystemContext", _context);
     }
 }
Example #2
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="context">Object context</param>
 public EfRepository(DbContext context)
 {
     this._context = (SystemContext)context;
 }