Ejemplo n.º 1
0
        public EmitEdmModelAnnotator(IMetadataProvider metadataProvider)
        {
            var clrTypeResolver = new EmitClrTypeResolver(metadataProvider);

            clrTypeResolver.Build();

            _clrTypeProvider = clrTypeResolver;
        }
Ejemplo n.º 2
0
        protected static DbModel BuildModel(BoundedContextElement context)
        {
            var metadataProvider = CreateMetadataProvider(MockSource(context));
            var clrTypeProvider  = new EmitClrTypeResolver(metadataProvider);

            clrTypeProvider.Build();

            var configurator = new DbModelBuilderConfigurator(metadataProvider, clrTypeProvider);

            var builder = configurator.Configure(context);
            var model   = builder.Build(EffortProvider);

            model.Dump();

            return(model);
        }