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();
        }
示例#2
0
 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;
 }
示例#5
0
 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)
 {
 }
示例#10
0
 public TestimonialRepository(SkyberryContext context, ICacheProvider cache)
     : base(context, cache)
 {
 }