private static DbModel BuildModel(IMetadataProvider metadataProvider, IClrTypeProvider clrTypeProvider) { BoundedContextElement context; metadataProvider.TryGetMetadata(BuildContextId(), out context); var configurator = new DbModelBuilderConfigurator(metadataProvider, clrTypeProvider); var builder = configurator.Configure(context); return(builder.Build(EffortProvider)); }
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; }
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); }