示例#1
0
        public ProductRepository(ShopgunDataContext context)
            : base(context)
        {
            var loadOptions = new DataLoadOptions();

            loadOptions.LoadWith <Product>(p => p.CertificationMarks);
            context.LoadOptions = loadOptions;
        }
示例#2
0
 public AdviceRepository(DataContext context)
     : base(context)
 {
 }
示例#3
0
 public BrandRepository(ShopgunDataContext context)
     : base(context)
 {
 }
示例#4
0
 public IngredientRepository(ShopgunDataContext context)
     : base(context)
 {
 }