C# Class VelocityDBAccess.VelocityDBAccessBuilder

Class able to generate a dynamic assembly to access a VelocityDb database.
显示文件 Open project: VelocityDB/VelocityDB Class Usage Examples

Public Methods

Method Description
BuildAssembly ( AssemblyName pAssemblyName, string pNamespace, string pTypeName, bool pInMemory ) : Assembly

Generate and build access assembly. The built assembly has a class with a property for each persistable type on the schema returning a IEnumerator. Also a constructor that connects to db and a function to close the connection.

VelocityDBAccessBuilder ( SchemaInfo pSchema, SessionInfo pSessionInfo ) : Microsoft.CSharp

Private Methods

Method Description
GenerateAssembly ( string pCode, AssemblyName pName, bool pInMemory ) : Assembly

Method Details

BuildAssembly() public method

Generate and build access assembly. The built assembly has a class with a property for each persistable type on the schema returning a IEnumerator. Also a constructor that connects to db and a function to close the connection.
public BuildAssembly ( AssemblyName pAssemblyName, string pNamespace, string pTypeName, bool pInMemory ) : Assembly
pAssemblyName System.Reflection.AssemblyName Name of the generated assembly
pNamespace string Namespace of the generated class
pTypeName string Name of the generated class
pInMemory bool Choose if generate in memory or /// on disk
return System.Reflection.Assembly

VelocityDBAccessBuilder() public method

public VelocityDBAccessBuilder ( SchemaInfo pSchema, SessionInfo pSessionInfo ) : Microsoft.CSharp
pSchema SchemaInfo
pSessionInfo SessionInfo
return Microsoft.CSharp