C# 클래스 GDSX.Externals.LinqPad.Driver.MongoDynamicDataContextDriver

상속: LINQPad.Extensibility.DataContext.DynamicDataContextDriver
파일 보기 프로젝트 열기: gburgett/LinqPad-mongo-driver 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CommonTypes Type>.Dictionary

공개 메소드들

메소드 설명
BuildAssembly ( ConnectionProperties props, IEnumerable code, AssemblyName name, Func GetDriverFolder ) : void

Compiles the assembly from the code files loaded as strings.

BuildSchema ( ConnectionProperties props, List assemblies ) : List

Builds the Schema tree for display to the user

GenerateCustomInitQuery ( LinqPadQuery query, string nameSpace ) : string
GenerateDynamicCode ( ConnectionProperties props, List assemblies, string nameSpace, string typeName ) : string

Generates the Dynamic Driver class as a string of code to be compiled.

GetAssembliesToAdd ( IConnectionInfo cxInfo ) : IEnumerable

Gets the additional assemblies that the Driver will require at runtime

GetConnectionDescription ( IConnectionInfo cxInfo ) : string
GetContextConstructorArguments ( IConnectionInfo cxInfo ) : object[]

Gets the arguments that are passed to the dynamically instantiated driver

GetContextConstructorParameters ( IConnectionInfo cxInfo ) : ParameterDescriptor[]

Gets an array describing the types of objects that will be passed into the dynamically instantiated driver

GetNamespacesToAdd ( ConnectionProperties props ) : IEnumerable

Gets the additional namespaces that should be imported for queries using this driver

GetNamespacesToAdd ( IConnectionInfo cxInfo ) : IEnumerable

Gets the additional namespaces that should be imported for queries using this driver

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

Creates the Schema which displays information about the connection to the user, and dynamically generates the driver as an assembly.

GetStaticCodeFiles ( ) : IEnumerable

Loads up the Static code files which should be built with the dynamic driver as strings

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

Initializes the driver after it has been instantiated.

ShowConnectionDialog ( IConnectionInfo cxInfo, bool isNewConnection ) : bool

LinqPad calls this to display the Connection Options dialog & generate the connection properties.

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

Called when the Driver context is torn down to clean up resources

비공개 메소드들

메소드 설명
DoPluralize ( string s ) : string
TryLoadType ( IEnumerable assemblies, string typeName ) : Type

Gets the requested type name out of one of the loaded assemblies, or null if it can't be found

메소드 상세

BuildAssembly() 공개 메소드

Compiles the assembly from the code files loaded as strings.
public BuildAssembly ( ConnectionProperties props, IEnumerable code, AssemblyName name, Func GetDriverFolder ) : void
props ConnectionProperties The deserialized Connection Properties
code IEnumerable The loaded strings of C# code
name System.Reflection.AssemblyName The location where the dynamically generated assembly should be created
GetDriverFolder Func An injected function that gets the LinqPad driver folder
리턴 void

BuildSchema() 공개 메소드

Builds the Schema tree for display to the user
public BuildSchema ( ConnectionProperties props, List assemblies ) : List
props ConnectionProperties The deserialized Connection Properties
assemblies List The already-loaded assemblies.
리턴 List

GenerateCustomInitQuery() 공개 메소드

public GenerateCustomInitQuery ( LinqPadQuery query, string nameSpace ) : string
query LinqPadQuery
nameSpace string
리턴 string

GenerateDynamicCode() 공개 메소드

Generates the Dynamic Driver class as a string of code to be compiled.
public GenerateDynamicCode ( ConnectionProperties props, List assemblies, string nameSpace, string typeName ) : string
props ConnectionProperties The deserialized Connection Properties
assemblies List The already-loaded assemblies.
nameSpace string The namespace of the driver class
typeName string The name of the driver class
리턴 string

GetAssembliesToAdd() 공개 메소드

Gets the additional assemblies that the Driver will require at runtime
public GetAssembliesToAdd ( IConnectionInfo cxInfo ) : IEnumerable
cxInfo IConnectionInfo the serialized connection properties.
리턴 IEnumerable

GetConnectionDescription() 공개 메소드

public GetConnectionDescription ( IConnectionInfo cxInfo ) : string
cxInfo IConnectionInfo
리턴 string

GetContextConstructorArguments() 공개 메소드

Gets the arguments that are passed to the dynamically instantiated driver
public GetContextConstructorArguments ( IConnectionInfo cxInfo ) : object[]
cxInfo IConnectionInfo the serialized connection properties.
리턴 object[]

GetContextConstructorParameters() 공개 메소드

Gets an array describing the types of objects that will be passed into the dynamically instantiated driver
public GetContextConstructorParameters ( IConnectionInfo cxInfo ) : ParameterDescriptor[]
cxInfo IConnectionInfo the serialized connection properties.
리턴 ParameterDescriptor[]

GetNamespacesToAdd() 공개 정적인 메소드

Gets the additional namespaces that should be imported for queries using this driver
public static GetNamespacesToAdd ( ConnectionProperties props ) : IEnumerable
props ConnectionProperties the deserialized ConnectionProperties object.
리턴 IEnumerable

GetNamespacesToAdd() 공개 메소드

Gets the additional namespaces that should be imported for queries using this driver
public GetNamespacesToAdd ( IConnectionInfo cxInfo ) : IEnumerable
cxInfo IConnectionInfo the serialized connection properties.
리턴 IEnumerable

GetSchemaAndBuildAssembly() 공개 메소드

Creates the Schema which displays information about the connection to the user, and dynamically generates the driver as an assembly.
public GetSchemaAndBuildAssembly ( IConnectionInfo cxInfo, AssemblyName assemblyToBuild, string &nameSpace, string &typeName ) : List
cxInfo IConnectionInfo the serialized connection properties.
assemblyToBuild System.Reflection.AssemblyName The location where the dynamically generated assembly should be created
nameSpace string The namespace of the driver class
typeName string The name of the driver class
리턴 List

GetStaticCodeFiles() 공개 메소드

Loads up the Static code files which should be built with the dynamic driver as strings
public GetStaticCodeFiles ( ) : IEnumerable
리턴 IEnumerable

InitializeContext() 공개 메소드

Initializes the driver after it has been instantiated.
public InitializeContext ( IConnectionInfo cxInfo, object context, LINQPad.Extensibility.DataContext.QueryExecutionManager executionManager ) : void
cxInfo IConnectionInfo the serialized connection properties.
context object The driver object
executionManager LINQPad.Extensibility.DataContext.QueryExecutionManager The current Query Execution Manager for this query
리턴 void

ShowConnectionDialog() 공개 메소드

LinqPad calls this to display the Connection Options dialog & generate the connection properties.
public ShowConnectionDialog ( IConnectionInfo cxInfo, bool isNewConnection ) : bool
cxInfo IConnectionInfo the serialized connection properties.
isNewConnection bool True if this is a brand new connection
리턴 bool

TearDownContext() 공개 메소드

Called when the Driver context is torn down to clean up resources
public TearDownContext ( IConnectionInfo cxInfo, object context, LINQPad.Extensibility.DataContext.QueryExecutionManager executionManager, object constructorArguments ) : void
cxInfo IConnectionInfo
context object
executionManager LINQPad.Extensibility.DataContext.QueryExecutionManager
constructorArguments object
리턴 void

프로퍼티 상세

CommonTypes 공개적으로 정적으로 프로퍼티

Types common to all Bson driver instances
public static Dictionary CommonTypes
리턴 Type>.Dictionary