protected void CreateDbContext() { DbContext = new SkyberryContext(); // Do NOT enable proxied entities, else serialization fails DbContext.Configuration.ProxyCreationEnabled = false; // Load navigation properties explicitly (avoid serialization trouble) DbContext.Configuration.LazyLoadingEnabled = false; Cache = new DefaultCacheProvider(); }
public SkyberryUserRepository(SkyberryContext context, ICacheProvider cache) : base(context, cache) { }
public AccountRepository(SkyberryContext context, ICacheProvider cache) : base(context, cache) { }
public RepositoryBase(SkyberryContext context, ICacheProvider cache) { _context = context; _dbSet = _context.Set <T>(); _cache = cache; }
public ProjectDocumentRepository(SkyberryContext context, ICacheProvider cache) : base(context, cache) { }
public ImageSetRepository(SkyberryContext context, ICacheProvider cache) : base(context, cache) { }
public InvoiceRepository(SkyberryContext context, ICacheProvider cache) : base(context, cache) { }
public DesignReviewRepository(SkyberryContext context, ICacheProvider cache) : base(context, cache) { }
public AddressRepository(SkyberryContext context, ICacheProvider cache) : base(context, cache) { }
public TestimonialRepository(SkyberryContext context, ICacheProvider cache) : base(context, cache) { }