public static PostgreQpDataContext CreateWithStaticMapping(ContentAccess contentAccess, DbConnection connection)
        {
            var schemaProvider = new StaticSchemaProvider();
            var configurator   = new MappingConfigurator(contentAccess, schemaProvider);

            return(Create(configurator, connection));
        }
Example #2
0
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            var schemaProvider = new StaticSchemaProvider();
            var mapping        = new MappingConfigurator(DefaultContentAccess, schemaProvider);

            mapping.OnModelCreating(modelBuilder);
        }
        private IMappingResolver GetDefaultMappingResolver()
        {
            var schema = new StaticSchemaProvider();

            return(new MappingResolver(schema.GetSchema()));
        }