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

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

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