コード例 #1
0
 public ProductsRepository(SmartBarContext context)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
 }
コード例 #2
0
 public ProductsProvider(SmartBarContext context)
 {
     this.context = context ?? throw new ArgumentNullException(nameof(context));
     this.context.ChangeTracker.AutoDetectChangesEnabled = false;
     this.context.ChangeTracker.QueryTrackingBehavior    = QueryTrackingBehavior.NoTracking;
 }