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(); }
protected AccessorBase(EngineeringUnitsContext context) : base(context) { }
public DimensionalAccessor(EngineeringUnitsContext context) : base(context) { }
protected DataAccess(EngineeringUnitsContext context) { Context = context; }
public UnitOfMeasureAccessor(EngineeringUnitsContext context) : base(context) { }
public CustomaryUnitAccessor(EngineeringUnitsContext context) : base(context) { }
public QuantityAccessor(EngineeringUnitsContext context) : base(context) { }