protected override void OnModelCreating(ModelBuilder builder)
 {
     base.OnModelCreating(builder);
     QuantityDbContext.InitializeTables(builder);
 }
 protected override DbSet <SystemOfUnitsData> getSet(QuantityDbContext c) => c.SystemsOfUnits;
 public MeasureTermsRepository(QuantityDbContext c) : base(c, c?.MeasureTerms)
 {
 }
Example #4
0
 internal void initializeTables(ModelBuilder builder)
 {
     QuantityDbContext.InitializeTables(builder);
 }
 protected override SystemsOfUnitsRepository getObject(QuantityDbContext c) => new SystemsOfUnitsRepository(c);
Example #6
0
 protected override UnitTermsRepository getObject(QuantityDbContext c) => new UnitTermsRepository(c);
Example #7
0
 public SystemsOfUnitsRepository(QuantityDbContext c) : base(c, c?.SystemsOfUnits)
 {
 }
Example #8
0
 public UnitTermsRepository(QuantityDbContext c) : base(c, c?.UnitTerms)
 {
 }
Example #9
0
 protected override DbSet <UnitTermData> getSet(QuantityDbContext c) => c.UnitTerms;
Example #10
0
 protected override DbSet <UnitFactorData> getSet(QuantityDbContext c) => c.UnitFactors;
Example #11
0
 public UnitFactorsRepository(QuantityDbContext c) : base(c, c?.UnitFactors)
 {
 }
Example #12
0
 protected override MeasureTermsRepository getObject(QuantityDbContext c) => new MeasureTermsRepository(c);
Example #13
0
 protected override DbSet <MeasureTermData> getSet(QuantityDbContext c) => c.MeasureTerms;
Example #14
0
 public MeasuresRepository(QuantityDbContext c)
 {
     db = c;
 }