コード例 #1
0
 protected GenericRepository(CambioDivisasContext context, IJsonConverter <T> converter)
 {
     this._jsonConverter  = converter;
     this._divisasContext = context;
     this._table          = context.Set <T>();
 }
コード例 #2
0
 protected GenericRepository()
 {
     this._jsonConverter  = new JsonConverter <T>();
     this._divisasContext = new CambioDivisasContext();
     this._table          = this._divisasContext.Set <T>();
 }