├── .appveyor.yml
├── .gitattributes
├── .gitignore
├── .travis.yml
├── CONTRIBUTING.md
├── Connectors.sln
├── License.txt
├── README.md
├── config
├── versions-dev.props
├── versions-master.props
└── versions.props
├── localSql.cmd
├── nuget.config
├── open_source_licenses.txt
├── src
├── Steeltoe.CloudFoundry.Connector.EF6Autofac
│ ├── MySqlDbContextContainerBuilderExtensions.cs
│ ├── SqlServerDbContextContainerBuilderExtensions.cs
│ └── Steeltoe.CloudFoundry.Connector.EF6Autofac.csproj
├── Steeltoe.CloudFoundry.Connector.EF6Core
│ ├── MySqlDbContextServiceCollectionExtensions.cs
│ ├── SqlServerDbContextServiceCollectionExtensions.cs
│ └── Steeltoe.CloudFoundry.Connector.EF6Core.csproj
├── Steeltoe.CloudFoundry.Connector.EFCore
│ ├── EntityFrameworkCoreTypeLocator.cs
│ ├── MigrateDbContextTask.cs
│ ├── MySqlDbContextOptionsExtensions.cs
│ ├── PostgresDbContextOptionsExtensions.cs
│ ├── SqlServerDbContextOptionsExtensions.cs
│ └── Steeltoe.CloudFoundry.Connector.EFCore.csproj
├── Steeltoe.CloudFoundry.ConnectorAutofac
│ ├── HystrixContainerBuilderExtensions.cs
│ ├── MongoDbContainerBuilderExtensions.cs
│ ├── MySqlContainerBuilderExtensions.cs
│ ├── OAuthContainerBuilderExtensions.cs
│ ├── PostgreSqlContainerBuilderExtensions.cs
│ ├── RabbitMQContainerBuilderExtensions.cs
│ ├── RedisContainerBuilderExtensions.cs
│ ├── SqlServerContainerBuilderExtensions.cs
│ └── Steeltoe.CloudFoundry.ConnectorAutofac.csproj
├── Steeltoe.CloudFoundry.ConnectorBase
│ ├── AbstractServiceConnectorOptions.cs
│ ├── App
│ │ ├── ApplicationInstanceInfo.cs
│ │ └── IApplicationInstanceInfo.cs
│ ├── Cache
│ │ ├── RedisCacheConfigurationExtensions.cs
│ │ ├── RedisCacheConfigurer.cs
│ │ ├── RedisCacheConnectorOptions.cs
│ │ ├── RedisHealthContributor.cs
│ │ ├── RedisServiceConnectorFactory.cs
│ │ └── RedisTypeLocator.cs
│ ├── CircuitBreaker
│ │ ├── HystrixConnectionFactory.cs
│ │ ├── HystrixProviderConfigurer.cs
│ │ ├── HystrixProviderConnectorFactory.cs
│ │ └── HystrixProviderConnectorOptions.cs
│ ├── CloudFoundryServiceInfoCreator.cs
│ ├── ConnectorException.cs
│ ├── ConnectorHelpers.cs
│ ├── ConnectorIOptions.cs
│ ├── DocumentDB
│ │ └── MongoDb
│ │ │ ├── MongoDbConnectorFactory.cs
│ │ │ ├── MongoDbConnectorOptions.cs
│ │ │ ├── MongoDbHealthContributor.cs
│ │ │ ├── MongoDbProviderConfigurer.cs
│ │ │ └── MongoDbTypeLocator.cs
│ ├── IConfigurationExtensions.cs
│ ├── OAuth
│ │ ├── OAuthConfigurer.cs
│ │ ├── OAuthConnectorDefaults.cs
│ │ ├── OAuthConnectorFactory.cs
│ │ ├── OAuthConnectorOptions.cs
│ │ └── OAuthServiceOptions.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Queue
│ │ ├── RabbitMQHealthContributor.cs
│ │ ├── RabbitMQProviderConfigurer.cs
│ │ ├── RabbitMQProviderConnectorFactory.cs
│ │ ├── RabbitMQProviderConnectorOptions.cs
│ │ └── RabbitMQTypeLocator.cs
│ ├── README.md
│ ├── Relational
│ │ ├── MySql
│ │ │ ├── EF6
│ │ │ │ └── MySqlDbContextConnectorFactory.cs
│ │ │ ├── MySqlProviderConfigurer.cs
│ │ │ ├── MySqlProviderConnectorFactory.cs
│ │ │ ├── MySqlProviderConnectorOptions.cs
│ │ │ └── MySqlTypeLocator.cs
│ │ ├── PostgreSQL
│ │ │ ├── PostgreSqlTypeLocator.cs
│ │ │ ├── PostgresProviderConfigurer.cs
│ │ │ ├── PostgresProviderConnectorFactory.cs
│ │ │ └── PostgresProviderConnectorOptions.cs
│ │ ├── RelationalHealthContributor.cs
│ │ └── SqlServer
│ │ │ ├── EF6
│ │ │ └── SqlServerDbContextConnectorFactory.cs
│ │ │ ├── SqlServerProviderConfigurer.cs
│ │ │ ├── SqlServerProviderConnectorFactory.cs
│ │ │ ├── SqlServerProviderConnectorOptions.cs
│ │ │ └── SqlServerTypeLocator.cs
│ ├── Services
│ │ ├── DB2ServiceInfo.cs
│ │ ├── DB2ServiceInfoFactory.cs
│ │ ├── EurekaServiceInfo.cs
│ │ ├── EurekaServiceInfoFactory.cs
│ │ ├── HystrixRabbitMQServiceInfo.cs
│ │ ├── HystrixRabbitMQServiceInfoFactory.cs
│ │ ├── IServiceInfo.cs
│ │ ├── IServiceInfoFactory.cs
│ │ ├── MongoDbServiceInfo.cs
│ │ ├── MongoDbServiceInfoFactory.cs
│ │ ├── MySqlServiceInfo.cs
│ │ ├── MySqlServiceInfoFactory.cs
│ │ ├── OracleServiceInfo.cs
│ │ ├── OracleServiceInfoFactory.cs
│ │ ├── PostgresServiceInfo.cs
│ │ ├── PostgresServiceInfoFactory.cs
│ │ ├── RabbitMQServiceInfo.cs
│ │ ├── RabbitMQServiceInfoFactory.cs
│ │ ├── RedisServiceInfo.cs
│ │ ├── RedisServiceInfoFactory.cs
│ │ ├── RelationalServiceInfoFactory.cs
│ │ ├── ServiceInfo.cs
│ │ ├── ServiceInfoFactory.cs
│ │ ├── ServiceInfoFactoryAttribute.cs
│ │ ├── SqlServerServiceInfo.cs
│ │ ├── SqlServerServiceInfoFactory.cs
│ │ ├── SsoServiceInfo.cs
│ │ ├── SsoServiceInfoFactory.cs
│ │ ├── Tags.cs
│ │ ├── UriInfo.cs
│ │ └── UriServiceInfo.cs
│ └── Steeltoe.CloudFoundry.ConnectorBase.csproj
└── Steeltoe.CloudFoundry.ConnectorCore
│ ├── HystrixProviderServiceCollectionExtensions.cs
│ ├── MongoDbProviderServiceCollectionExtensions.cs
│ ├── MySqlProviderServiceCollectionExtensions.cs
│ ├── MySqlServiceCollectionExtensions.cs
│ ├── OAuthServiceCollectionExtensions.cs
│ ├── PostgresProviderServiceCollectionExtensions.cs
│ ├── PostgresServiceCollectionExtensions.cs
│ ├── RabbitMQProviderServiceCollectionExtensions.cs
│ ├── RedisCacheServiceCollectionExtensions.cs
│ ├── SqlServerProviderServiceCollectionExtensions.cs
│ ├── SqlServerServiceCollectionExtensions.cs
│ └── Steeltoe.CloudFoundry.ConnectorCore.csproj
├── stylecop.json
├── targetframework.props
├── test
├── Steeltoe.CloudFoundry.Connector.EF6Autofac.Test
│ ├── GoodMySqlDbContext.cs
│ ├── GoodSqlServerDbContext.cs
│ ├── MySqlDbContextContainerBuilderExtensionsTest.cs
│ ├── MySqlTypeLocatorTest.cs
│ ├── SqlServerDbContextContainerBuilderExtensionsTest.cs
│ ├── Steeltoe.CloudFoundry.Connector.EF6Autofac.Test.csproj
│ └── xunit.runner.json
├── Steeltoe.CloudFoundry.Connector.EF6Core.Test
│ ├── BadMySqlDbContext.cs
│ ├── BadSqlServerDbContext.cs
│ ├── Good2MySqlDbContext.cs
│ ├── Good2SqlServerDbContext.cs
│ ├── GoodMySqlDbContext.cs
│ ├── GoodSqlServerDbContext.cs
│ ├── MySqlDbContextConnectorFactoryTest.cs
│ ├── MySqlDbContextServiceCollectionExtensionsTest.cs
│ ├── MySqlTestHelpers.cs
│ ├── MySqlTypeLocatorTest.cs
│ ├── SqlServerDbContextConnectorFactoryTest.cs
│ ├── SqlServerDbContextServiceCollectionExtensionsTest.cs
│ ├── SqlServerTestHelpers.cs
│ ├── Steeltoe.CloudFoundry.Connector.EF6Core.Test.csproj
│ ├── TestHelpers.cs
│ └── xunit.runner.json
├── Steeltoe.CloudFoundry.Connector.EFCore.Test
│ ├── EntityFrameworkCoreTypeLocatorTest.cs
│ ├── GoodDbContext.cs
│ ├── MySqlDbContextOptionsExtensionsTest.cs
│ ├── MySqlTestHelpers.cs
│ ├── MySqlTypeLocatorTest.cs
│ ├── PostgresDbContextOptionsExtensionsTest.cs
│ ├── PostgresTestHelpers.cs
│ ├── SqlServerDbContextOptionsExtensionsTest.cs
│ ├── SqlServerTestHelpers.cs
│ ├── Steeltoe.CloudFoundry.Connector.EFCore.Test.csproj
│ ├── TestHelpers.cs
│ └── xunit.runner.json
├── Steeltoe.CloudFoundry.ConnectorAutofac.Test
│ ├── HystrixContainerBuilderExtensionsTest.cs
│ ├── MongoDbContainerBuilderExtensionsTest.cs
│ ├── MySqlContainerBuilderExtensionsTest.cs
│ ├── MySqlTypeLocatorTest.cs
│ ├── OAuthContainerBuilderExtensionsTest.cs
│ ├── PostgreSqlContainerBuilderExtensionsTest.cs
│ ├── RabbitMQContainerBuilderExtensionsTest.cs
│ ├── RedisContainerBuilderExtensionsTest.cs
│ ├── SqlServerContainerBuilderExtensionsTest.cs
│ └── Steeltoe.CloudFoundry.ConnectorAutofac.Test.csproj
├── Steeltoe.CloudFoundry.ConnectorBase.Test
│ ├── AbstractServiceConfigurationTest.cs
│ ├── App
│ │ └── ApplicationInstanceInfoTest.cs
│ ├── Cache
│ │ ├── RedisCacheConfigurerTest.cs
│ │ ├── RedisCacheConnectorOptionsTest.cs
│ │ ├── RedisCacheTestHelpers.cs
│ │ ├── RedisHealthContributorTest.cs
│ │ ├── RedisServiceConnectorFactoryTest.cs
│ │ └── RedisTypeLocatorTest.cs
│ ├── CircuitBreaker
│ │ ├── HystrixProviderConfigurationTest.cs
│ │ ├── HystrixProviderConfigurerTest.cs
│ │ └── HystrixProviderConnectorFactoryTest.cs
│ ├── CloudFoundryServiceInfoCreatorTest.cs
│ ├── ConnectorExceptionTest.cs
│ ├── DocumentDB
│ │ └── MongoDb
│ │ │ ├── MongoDbConnectorFactoryTest.cs
│ │ │ ├── MongoDbConnectorOptionsTest.cs
│ │ │ ├── MongoDbHealthContributorTest.cs
│ │ │ ├── MongoDbProviderConfigurerTest.cs
│ │ │ ├── MongoDbTestHelpers.cs
│ │ │ └── MongoDbTypeLocatorTest.cs
│ ├── OAuth
│ │ ├── OAuthConfigurerTest.cs
│ │ ├── OAuthConnectorFactoryTest.cs
│ │ └── OAuthConnectorOptionsTest.cs
│ ├── Queue
│ │ ├── RabbitMQConfigurerTest.cs
│ │ ├── RabbitMQHealthContributorTest.cs
│ │ ├── RabbitMQProviderConnectorOptionsTest.cs
│ │ ├── RabbitMQServiceConnectorFactoryTest.cs
│ │ └── RabbitMQTypeLocatorTest.cs
│ ├── Relational
│ │ ├── MySql
│ │ │ ├── MySqlProviderConfigurerTest.cs
│ │ │ ├── MySqlProviderConnectorFactoryTest.cs
│ │ │ ├── MySqlProviderConnectorOptionsTest.cs
│ │ │ ├── MySqlTestHelpers.cs
│ │ │ └── MySqlTypeLocatorTest.cs
│ │ ├── PostgreSQL
│ │ │ ├── PostgresProviderConfigurerTest.cs
│ │ │ ├── PostgresProviderConnectorFactoryTest.cs
│ │ │ ├── PostgresProviderConnectorOptionsTest.cs
│ │ │ └── PostgresTestHelpers.cs
│ │ ├── PostgreSql
│ │ │ └── PostgreSqlTypeLocatorTest.cs
│ │ ├── RelationalHealthContributorTest.cs
│ │ └── SqlServer
│ │ │ ├── SqlServerProviderConfigurerTest.cs
│ │ │ ├── SqlServerProviderConnectorFactoryTest.cs
│ │ │ ├── SqlServerProviderConnectorOptionsTest.cs
│ │ │ ├── SqlServerTestHelpers.cs
│ │ │ └── SqlServerTypeLocatorTest.cs
│ ├── Services
│ │ ├── DB2ServiceInfoFactoryTest.cs
│ │ ├── DB2ServiceInfoTest.cs
│ │ ├── EurekaServiceInfoFactoryTest.cs
│ │ ├── EurekaServiceInfoTest.cs
│ │ ├── HystrixRabbitMQServiceInfoFactoryTest.cs
│ │ ├── HystrixRabbitMQServiceInfoTest.cs
│ │ ├── MongoDbServiceInfoFactoryTest.cs
│ │ ├── MongoDbServiceInfoTest.cs
│ │ ├── MySqlServiceInfoFactoryTest.cs
│ │ ├── MySqlServiceInfoTest.cs
│ │ ├── OracleServiceInfoFactoryTest.cs
│ │ ├── OracleServiceInfoTest.cs
│ │ ├── PostgresServiceInfoTest.cs
│ │ ├── PostgressServiceInfoFactory.cs
│ │ ├── RabbitMQServiceInfoFactoryTest.cs
│ │ ├── RabbitMQServiceInfoTest.cs
│ │ ├── RedisServiceInfoFactoryTest.cs
│ │ ├── RedisServiceInfoTest.cs
│ │ ├── ServiceInfoFactoryTest.cs
│ │ ├── ServiceInfoTest.cs
│ │ ├── SqlServerInfoFactoryTest.cs
│ │ ├── SqlServerInfoTest.cs
│ │ ├── SsoServiceInfoFactoryTest.cs
│ │ ├── SsoServiceInfoTest.cs
│ │ ├── TagsTest.cs
│ │ ├── TestServiceInfo.cs
│ │ ├── TestServiceInfoFactory.cs
│ │ ├── TestUriServiceInfo.cs
│ │ ├── UriInfoTest.cs
│ │ └── UriServiceInfoTest.cs
│ ├── Steeltoe.CloudFoundry.ConnectorBase.Test.csproj
│ ├── TestHelpers.cs
│ ├── TestServiceConfiguration.cs
│ └── xunit.runner.json
└── Steeltoe.CloudFoundry.ConnectorCore.Test
│ ├── ConnectorIOptionsTest.cs
│ ├── HystrixProviderServiceCollectionExtensionsTest.cs
│ ├── MongoDbProviderServiceCollectionExtensionsTest.cs
│ ├── MongoDbTestHelpers.cs
│ ├── MySqlProviderServiceCollectionExtensionsTest.cs
│ ├── MySqlServiceCollectionExtensionsTest.cs
│ ├── MySqlTestHelpers.cs
│ ├── MySqlTypeLocatorTest.cs
│ ├── OAuthServiceCollectionExtensionsTest.cs
│ ├── PostgresProviderServiceCollectionExtensionsTest.cs
│ ├── PostgresServiceCollectionExtensionsTest.cs
│ ├── PostgresTestHelpers.cs
│ ├── RabbitMQServiceCollectionExtensionsTest.cs
│ ├── RedisCacheConfigurationExtensionsTest.cs
│ ├── RedisCacheServiceCollectionExtensionsTest.cs
│ ├── RedisCacheTestHelpers.cs
│ ├── SqlServerProviderServiceCollectionExtensionsTest.cs
│ ├── SqlServerServiceCollectionExtensionsTest.cs
│ ├── SqlServerTestHelpers.cs
│ ├── Steeltoe.CloudFoundry.ConnectorCore.Test.csproj
│ ├── TestHelpers.cs
│ └── xunit.runner.json
└── versions.props
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.doc diff=astextplain
2 | *.DOC diff=astextplain
3 | *.docx diff=astextplain
4 | *.DOCX diff=astextplain
5 | *.dot diff=astextplain
6 | *.DOT diff=astextplain
7 | *.pdf diff=astextplain
8 | *.PDF diff=astextplain
9 | *.rtf diff=astextplain
10 | *.RTF diff=astextplain
11 |
12 | *.jpg binary
13 | *.png binary
14 | *.gif binary
15 |
16 | *.cs text=auto diff=csharp
17 | *.vb text=auto
18 | *.resx text=auto
19 | *.c text=auto
20 | *.cpp text=auto
21 | *.cxx text=auto
22 | *.h text=auto
23 | *.hxx text=auto
24 | *.py text=auto
25 | *.rb text=auto
26 | *.java text=auto
27 | *.html text=auto
28 | *.htm text=auto
29 | *.css text=auto
30 | *.scss text=auto
31 | *.sass text=auto
32 | *.less text=auto
33 | *.js text=auto
34 | *.lisp text=auto
35 | *.clj text=auto
36 | *.sql text=auto
37 | *.php text=auto
38 | *.lua text=auto
39 | *.m text=auto
40 | *.asm text=auto
41 | *.erl text=auto
42 | *.fs text=auto
43 | *.fsx text=auto
44 | *.hs text=auto
45 |
46 | *.csproj text=auto
47 | *.vbproj text=auto
48 | *.fsproj text=auto
49 | *.dbproj text=auto
50 | *.sln text=auto eol=crlf
51 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: csharp
2 | dist: trusty
3 | env:
4 | TestFrameworkVersion: netcoreapp2.1
5 | STEELTOE_VERSION: 2.2.0
6 | global:
7 | - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
8 | - DOTNET_CLI_TELEMETRY_OPTOUT: 1
9 | mono: none
10 | dotnet: 2.1.403
11 | os:
12 | - linux
13 | - osx
14 | osx_image: xcode8.3
15 | branches:
16 | only:
17 | - master
18 | - dev
19 | - /^update[0-9]{2}x/
20 | script:
21 | - ./steeltoe-ci/scripts/travis_install.sh
22 | - ./steeltoe-ci/scripts/travis_build.sh
23 | - ./steeltoe-ci/scripts/travis_test.sh
24 | before_install:
25 | - git clone https://github.com/SteeltoeOSS/steeltoe-ci.git -v
26 | - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ulimit -n 1024; fi
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | If you have not previously done so, please fill out and
2 | submit the [Contributor License Agreement](https://cla.pivotal.io/sign/pivotal).
3 |
--------------------------------------------------------------------------------
/config/versions-dev.props:
--------------------------------------------------------------------------------
1 |
2 |
3 | $(STEELTOE_VERSION)
4 | $(STEELTOE_DASH_VERSION_SUFFIX)
5 | 2.2.0-dev-00133
6 | 2.2.0-dev-00343
7 | 2.0.0
8 | 2.0.0
9 | 2.1.1
10 | 2.1.0
11 | 2.1.0
12 | 4.6.1
13 | 4.4.0
14 | 6.2.0
15 | 2.0.0
16 | 2.1.2
17 | 11.0.2
18 | 2.5.0
19 | 8.0.9-dmr
20 | 0.49.3
21 | 6.10.7
22 | 8.0.14
23 | 4.0.0
24 | 2.1.0
25 | 2.0.1
26 | 5.1.0
27 | 4.5.0
28 | 1.2.6
29 | 1.0.2
30 | 15.7.2
31 | 2.3.1
32 | 2.3.1
33 | 1.0.0-beta2-18618-05
34 |
35 |
--------------------------------------------------------------------------------
/config/versions-master.props:
--------------------------------------------------------------------------------
1 |
2 |
3 | $(STEELTOE_VERSION)
4 | $(STEELTOE_DASH_VERSION_SUFFIX)
5 | 2.2.0-master-00134
6 | 2.2.0-master-00336
7 | 2.0.0
8 | 2.0.0
9 | 2.1.1
10 | 2.1.0
11 | 2.1.0
12 | 4.6.1
13 | 4.4.0
14 | 6.2.0
15 | 2.0.0
16 | 2.1.2
17 | 11.0.2
18 | 2.5.0
19 | 8.0.9-dmr
20 | 0.49.3
21 | 6.10.7
22 | 8.0.14
23 | 4.0.0
24 | 2.1.0
25 | 2.0.1
26 | 5.1.0
27 | 4.5.0
28 | 1.2.6
29 | 1.0.2
30 | 15.7.2
31 | 2.3.1
32 | 2.3.1
33 | 1.0.0-beta2-18618-05
34 |
35 |
--------------------------------------------------------------------------------
/config/versions.props:
--------------------------------------------------------------------------------
1 |
2 |
3 | $(STEELTOE_VERSION)
4 | $(STEELTOE_DASH_VERSION_SUFFIX)
5 | 2.2.0
6 | 2.1.1
7 | 2.0.0
8 | 2.0.0
9 | 2.1.1
10 | 2.1.0
11 | 2.1.0
12 | 4.6.1
13 | 4.4.0
14 | 6.2.0
15 | 2.0.0
16 | 2.1.2
17 | 11.0.2
18 | 2.5.0
19 | 8.0.9-dmr
20 | 0.49.3
21 | 6.10.7
22 | 8.0.14
23 | 4.0.0
24 | 2.1.0
25 | 2.0.1
26 | 5.1.0
27 | 4.5.0
28 | 2.0.0
29 | 1.0.2
30 | 15.7.2
31 | 2.3.1
32 | 2.3.1
33 | 1.0.0-beta2-18618-05
34 |
35 |
--------------------------------------------------------------------------------
/localSql.cmd:
--------------------------------------------------------------------------------
1 | docker run -p 3306:3306 --name some-mysql -e MYSQL_ROOT_PASSWORD=steeltoe -d mysql:5.6
2 | docker ps
3 | (find container id)
4 | docker exec -it bash
5 |
6 | mysql -u root -p
7 | mysql> create database steeltoe;
8 | mysql> grant all privileges on steeltoe.* to 'steeltoe'@'%';
9 | mysql> grant all privileges on steeltoe.* to 'steeltoe'@'%' IDENTIFIED BY 'steeltoe';
10 | mysql> FLUSH PRIVILEGES
11 |
12 |
--------------------------------------------------------------------------------
/nuget.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/Steeltoe.CloudFoundry.Connector.EF6Autofac/MySqlDbContextContainerBuilderExtensions.cs:
--------------------------------------------------------------------------------
1 | // Copyright 2017 the original author or authors.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // https://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | using Autofac;
16 | using Autofac.Builder;
17 | using Microsoft.Extensions.Configuration;
18 | using Steeltoe.CloudFoundry.Connector.MySql;
19 | using Steeltoe.CloudFoundry.Connector.Services;
20 | using System;
21 |
22 | namespace Steeltoe.CloudFoundry.Connector.EF6Autofac
23 | {
24 | public static class MySqlDbContextContainerBuilderExtensions
25 | {
26 | ///
27 | /// Add your MySql-based DbContext to the ContainerBuilder
28 | ///
29 | /// Your DbContext
30 | /// Autofac
31 | /// Your app config
32 | /// Name of service instance
33 | ///
34 | public static IRegistrationBuilder