Exemplo n.º 1
0
        private DeveelDbProvider CreateProvider()
        {
            if (Provider == null)
            {
                // TODO: Get all other settings as metadata

                var mappingContext = new MappingContext();
                OnBuildMap(mappingContext);

                var model = mappingContext.CreateModel();

                Provider = ParentContext.GetQueryProvider(model);
            }

            return((DeveelDbProvider)Provider);
        }