Appearance
DbProviderFactoryRegistry Class
Definition
Provides registration and resolution for ADO.NET database provider factories.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Methods
| Name | Description |
|---|---|
bool AddFactory(string name, string assembly, string factoryTypeName, string alias) | Add a new database provider factory registration. |
string GetFactoryTypeName(DatabaseType type) | Returns the registered factory type name for the specified database type. |
bool TryGetConnection(DatabaseType type, string connectionString, out DbConnection connection) | Attempts to create a DbConnection for the requested provider registration. |
bool TryGetConnection(string name, string connectionString, out DbConnection connection) | Attempts to create a DbConnection for the requested provider registration. |
bool TryGetFactory(DatabaseType type, out DbProviderFactory factory) | Attempts to resolve the requested DbProviderFactory. |
bool TryGetFactory(string name, out DbProviderFactory factory) | Attempts to resolve the requested DbProviderFactory. |