Example #1
0
        public static QpDataContext CreateWithStaticMapping(ContentAccess contentAccess, DbConnection connection)
        {
            var schemaProvider = new StaticSchemaProvider();
            var configurator   = new MappingConfigurator(contentAccess, schemaProvider);

            return(Create(configurator, connection));
        }
Example #2
0
        private IMappingResolver GetDefaultMappingResolver()
        {
            var schema = new StaticSchemaProvider();

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