Пример #1
0
        public static void TryInitialize(EngineeringUnitsContext context)
        {
            /*if (context.UnitOfMeasures.Any())
             *  return;*/
            context.Database.EnsureDeleted();
            context.Database.EnsureCreated();

            var units = XmlHandler.GetUnits(Path);

            context.UnitOfMeasures.AddRange(units);
            context.SaveChanges();
        }
Пример #2
0
 protected AccessorBase(EngineeringUnitsContext context) : base(context)
 {
 }
 public DimensionalAccessor(EngineeringUnitsContext context) : base(context)
 {
 }
Пример #4
0
 protected DataAccess(EngineeringUnitsContext context)
 {
     Context = context;
 }
 public UnitOfMeasureAccessor(EngineeringUnitsContext context) : base(context)
 {
 }
 public CustomaryUnitAccessor(EngineeringUnitsContext context) : base(context)
 {
 }
Пример #7
0
 public QuantityAccessor(EngineeringUnitsContext context) : base(context)
 {
 }