Example #1
0
 public static SplatsContext GetInstance()
 {
     if (_instance == null)
     {
         _instance = new SplatsContext();
     }
     return(_instance);
 }
Example #2
0
 public Repository(SplatsContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }