public static List <Unit> GetVelocityUnits(ShootingContext1 context)
        {
            var length = from unit in context.Units
                         where unit.UnitType.Name.ToLower() == "velocity"
                         select unit;

            return(length.ToList());
        }
        public static List <UnitView> GetQuantityUnitViews(ShootingContext1 context)
        {
            var quantity = from unit in context.UnitViews
                           where unit.UnitTypeName.ToLower() == "quantity"
                           select unit;

            return(quantity.ToList());
        }
        public static List <Unit> GetPressureUnits(ShootingContext1 context)
        {
            var mass = from unit in context.Units
                       where unit.UnitType.Name.ToLower() == "pressure"
                       select unit;

            return(mass.ToList());
        }
 public static List <PowderShape> GetPowderShapes(ShootingContext1 context)
 {
     return(context.PowderShapes.ToList());
 }
 public static List <Material> GetMaterials(ShootingContext1 context)
 {
     return(context.Materials.ToList());
 }
 public static List <Manufacturer> GetManufacturers(ShootingContext1 context)
 {
     return(context.Manufacturers.ToList());
 }
 public static List <InventoryType> GetInventoryTypes(ShootingContext1 context)
 {
     return(context.InventoryTypes.ToList());
 }
 public static List <GunType> GetGunTypes(ShootingContext1 context)
 {
     return(context.GunTypes.ToList());
 }
 public static List <Brass> GetBrasses(ShootingContext1 context)
 {
     return(context.Brasses.Include(c => c.Caliber).Include(m => m.Material).Include(m => m.Manufacturer).ToList());
 }
 public static List <ShootingLocation> GetShootingLocations(ShootingContext1 context)
 {
     return(context.ShootingLocations.ToList());
 }
 public static List <CartridgeLoad> GetCartridgeLoads(ShootingContext1 context)
 {
     return(context.CartridgeLoads.Include(c => c.Caliber).Include(c => c.Bullet).Include(p => p.Powder).ToList());
 }
 public static List <Caliber> GetCalibers(ShootingContext1 context)
 {
     return(context.Calibers.OrderBy(c => c.SortOrder).Include(p => p.PrimerType).ToList());
 }
 public static List <BulletType> GetBulletTypes(ShootingContext1 context)
 {
     return(context.BulletTypes.ToList());
 }
 public static List <Bullet> GetBullets(ShootingContext1 context)
 {
     return(context.Bullets.Include(b => b.BulletType).Include(m => m.Material).Include(m => m.Manufacturer).ToList());
 }
 public static List <Primer> GetPrimers(ShootingContext1 context)
 {
     return(context.Primers.Include(p => p.PrimerType).Include(m => m.Manufacturer).ToList());
 }
 public static List <PrimerType> GetPrimerTypes(ShootingContext1 context)
 {
     return(context.PrimerTypes.ToList());
 }
 public static List <Cartridge> GetCartridges(ShootingContext1 context)
 {
     return(context.Cartridges.Include(c => c.CartridgeLoad).Include(b => b.Brass).Include(p => p.Primer).Include(m => m.Manufacturer).ToList());
 }
 public static List <UnitType> GetUnitTypes(ShootingContext1 context)
 {
     return(context.UnitTypes.ToList());
 }
 public static List <Gun> GetGuns(ShootingContext1 context)
 {
     return(context.Guns.Include(c => c.Caliber).Include(m => m.Manufacturer).Include(g => g.GunType).ToList());
 }