C# Class BondInEtwLinqpadDriver.BondDynamicDriver

Dynamic driver class.
Inheritance: LINQPad.Extensibility.DataContext.DynamicDataContextDriver
Show file Open project: Reactive-Extensions/Tx

Public Methods

Method Description
GetAssembliesToAdd ( IConnectionInfo cxInfo ) : IEnumerable

Returns a list of additional assemblies to reference when building queries.

GetConnectionDescription ( IConnectionInfo cxInfo ) : string

Get connection details.

GetContextConstructorArguments ( IConnectionInfo cxInfo ) : object[]

Returns argument values to pass to into the data context's constructor, based on a given connection info.

GetContextConstructorParameters ( IConnectionInfo cxInfo ) : ParameterDescriptor[]

Returns names and types of parameters that should be passed into the data context constructor.

GetNamespacesToAdd ( IConnectionInfo cxInfo ) : IEnumerable

Returns a list of additional namespaces that should be imported automatically into all queries that use this driver.

GetSchemaAndBuildAssembly ( IConnectionInfo cxInfo, AssemblyName assemblyToBuild, string &nameSpace, string &typeName ) : List

Builds an assembly containing a typed data context, and returns data for the Schema Explorer.

OnQueryFinishing ( IConnectionInfo cxInfo, object context, LINQPad.Extensibility.DataContext.QueryExecutionManager executionManager ) : void

This method is called after the query's main thread has finished running the user's code, but before the query has stopped. If you've spun up threads that are still writing results, you can use this method to wait out those threads.

ShowConnectionDialog ( IConnectionInfo cxInfo, bool isNewConnection ) : bool

Displays a dialog prompting the user for connection details.

Private Methods

Method Description
AddNestedPropertyToTree ( PropertyInfo property, LINQPad.Extensibility.DataContext.ExplorerItem propertyType ) : void
BondDynamicDriver ( ) : System

Static constructor

CreateEventTree ( EventStatistics>.IDictionary stat ) : List

Create schema tree that appears on the left pane below the driver connection name.

GetAssemblyTypes ( string targetPath ) : System.Type[]
ResolveAssembly ( object sender, ResolveEventArgs resolveEventArgs ) : Assembly

Needed to reference other assemblies that are not part of the .NET framework.

Method Details

GetAssembliesToAdd() public method

Returns a list of additional assemblies to reference when building queries.
public GetAssembliesToAdd ( IConnectionInfo cxInfo ) : IEnumerable
cxInfo IConnectionInfo Connection information, as entered by the user.
return IEnumerable

GetConnectionDescription() public method

Get connection details.
public GetConnectionDescription ( IConnectionInfo cxInfo ) : string
cxInfo IConnectionInfo Connection information, as entered by the user.
return string

GetContextConstructorArguments() public method

Returns argument values to pass to into the data context's constructor, based on a given connection info.
public GetContextConstructorArguments ( IConnectionInfo cxInfo ) : object[]
cxInfo IConnectionInfo Connection information, as entered by the user.
return object[]

GetContextConstructorParameters() public method

Returns names and types of parameters that should be passed into the data context constructor.
public GetContextConstructorParameters ( IConnectionInfo cxInfo ) : ParameterDescriptor[]
cxInfo IConnectionInfo Connection information, as entered by the user.
return ParameterDescriptor[]

GetNamespacesToAdd() public method

Returns a list of additional namespaces that should be imported automatically into all queries that use this driver.
public GetNamespacesToAdd ( IConnectionInfo cxInfo ) : IEnumerable
cxInfo IConnectionInfo Connection information, as entered by the user.
return IEnumerable

GetSchemaAndBuildAssembly() public method

Builds an assembly containing a typed data context, and returns data for the Schema Explorer.
public GetSchemaAndBuildAssembly ( IConnectionInfo cxInfo, AssemblyName assemblyToBuild, string &nameSpace, string &typeName ) : List
cxInfo IConnectionInfo Connection information, as entered by the user
assemblyToBuild System.Reflection.AssemblyName Name and location of the target assembly to build
nameSpace string The suggested namespace of the typed data context. You must update this /// parameter if you don't use the suggested namespace.
typeName string The suggested type name of the typed data context. You must update this /// parameter if you don't use the suggested type name.
return List

OnQueryFinishing() public method

This method is called after the query's main thread has finished running the user's code, but before the query has stopped. If you've spun up threads that are still writing results, you can use this method to wait out those threads.
public OnQueryFinishing ( IConnectionInfo cxInfo, object context, LINQPad.Extensibility.DataContext.QueryExecutionManager executionManager ) : void
cxInfo IConnectionInfo Connection information, as entered by the user.
context object Context
executionManager LINQPad.Extensibility.DataContext.QueryExecutionManager execution manager
return void

ShowConnectionDialog() public method

Displays a dialog prompting the user for connection details.
public ShowConnectionDialog ( IConnectionInfo cxInfo, bool isNewConnection ) : bool
cxInfo IConnectionInfo Connection information, as entered by the user.
isNewConnection bool The isNewConnection parameter will be true if the user /// is creating a new connection rather than editing an existing connection.
return bool