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.
Inheritance
Namespace: VeloxDB.Client
Assembly: vlxc.dll
Syntax
public static class ConnectionFactory : Object
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 |
---|---|---|
System.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 |
---|---|
System.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 |
---|---|---|
System.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 |
---|---|
System.ArgumentException | T is not an interface. |
InvalidConnectionStringException | If supplied connection string is not valid |