예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EFSharedContextFactory"/> class.
 /// </summary>
 /// <param name="sharedConnectionStringResolver">The shared connection string resolver.</param>
 /// <param name="modelBuilderFactory">The model builder factory.</param>
 /// <param name="iocServiceLocator">The ioc service locator.</param>
 public EFSharedContextFactory(ISharedConnectionStringResolver sharedConnectionStringResolver,
                               IModelBuilderFactory modelBuilderFactory,
                               IIoCServiceLocator iocServiceLocator)
 {
     _sharedConnectionStringResolver = sharedConnectionStringResolver;
     _modelBuilderFactory            = modelBuilderFactory;
     _iocServiceLocator = iocServiceLocator;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlServerOptionsBuilder" /> class.
 /// </summary>
 /// <param name="sharedConnectionStringResolver">The shared connection string resolver.</param>
 public CosmosDbOptionsBuilder(ISharedConnectionStringResolver sharedConnectionStringResolver)
 {
     _sharedConnectionStringResolver = sharedConnectionStringResolver;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlServerOptionsBuilder" /> class.
 /// </summary>
 /// <param name="sharedConnectionStringResolver">The shared connection string resolver.</param>
 public SqlServerOptionsBuilder(ISharedConnectionStringResolver sharedConnectionStringResolver)
 {
     _sharedConnectionStringResolver = sharedConnectionStringResolver;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AzureQueueContextFactory" /> class.
 /// </summary>
 /// <param name="sharedConnectionStringResolver">The shared connection string resolver.</param>
 public AzureQueueContextFactory(ISharedConnectionStringResolver sharedConnectionStringResolver)
 {
     _sharedConnectionStringResolver = sharedConnectionStringResolver;
 }