コード例 #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;
 }
コード例 #4
0
 /// <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;
 }