note
VeloxDB is still in beta and APIs are subject to change. We are in the process of completing the documentation, so some sections may be incomplete or empty at this time.
Class ConnectionFactory
Creates VeloxDB connection.
Inherited Members
Namespace: VeloxDB.Client
Assembly: vlxc.dll
Syntax
public static class ConnectionFactory
Methods
Get<T>(string)
Creates VeloxDB connection using supplied connection string. Use ConnectionStringParams to create connection string.
Declaration
public static T Get<T>(string connectionString) where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| string | connectionString | Connection string. |
Returns
| Type | Description |
|---|---|
| T | Proxy object implementing T. |
Type Parameters
| Name | Description |
|---|---|
| T | Interface od database API to connect to. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | T is not an interface. |
| InvalidConnectionStringException | If supplied connection string is not valid |
Get<T>(string, IAssemblyProvider)
Creates VeloxDB connection using supplied connection string. Use ConnectionStringParams to create connection string.
Declaration
public static T Get<T>(string connectionString, IAssemblyProvider assemblyProvider) where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| string | connectionString | Connection string. |
| IAssemblyProvider | assemblyProvider | Assembly provider that can be used to provide the protocol serializer with additional assemblies containing protocl classes. |
Returns
| Type | Description |
|---|---|
| T | Proxy object implementing T. |
Type Parameters
| Name | Description |
|---|---|
| T | Interface od database API to connect to. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | T is not an interface. |
| InvalidConnectionStringException | If supplied connection string is not valid |