C# 클래스 DbExpressions.DbQueryTranslatorFactory

Factory class that creates DbQueryTranslator instances.
파일 보기 프로젝트 열기: seesharper/DbExpressions 1 사용 예제들

공개 메소드들

메소드 설명
GetQueryTranslator ( ) : DbQueryTranslator

Gets a new DbQueryTranslator instance according to the configured default provider name.

The default value is "System.Data.SqlClient", but this can be overridden in app/web.config. The default provider is also used to translate an expression in the DbExpression.ToString method.

GetQueryTranslator ( string invariantProviderName ) : DbQueryTranslator

Gets a new DbQueryTranslator instance.

RegisterQueryTranslator ( string providerInvariantName, Type queryTranslatorType ) : void

Registers a new DbQueryTranslator type for the target provider.

SetDefaultProvider ( string providerInvariantName ) : void

Specifies the name of the default provider that will be used if otherwise not specified. This will also be used in the ToString() override to provide a textual representation of the query during debugging.

비공개 메소드들

메소드 설명
CreateInstance ( string providerInvariantName, Type type ) : DbQueryTranslator
CreateProviderFactory ( string providerInvariantName ) : System.Data.Common.DbProviderFactory
DbQueryTranslatorFactory ( ) : System
RegisterBuiltinTranslators ( ) : void
RegisterConfiguredTranslators ( ) : void

메소드 상세

GetQueryTranslator() 공개 정적인 메소드

Gets a new DbQueryTranslator instance according to the configured default provider name.
The default value is "System.Data.SqlClient", but this can be overridden in app/web.config. The default provider is also used to translate an expression in the DbExpression.ToString method.
public static GetQueryTranslator ( ) : DbQueryTranslator
리턴 DbQueryTranslator

GetQueryTranslator() 공개 정적인 메소드

Gets a new DbQueryTranslator instance.
public static GetQueryTranslator ( string invariantProviderName ) : DbQueryTranslator
invariantProviderName string The invariant provider name.
리턴 DbQueryTranslator

RegisterQueryTranslator() 공개 정적인 메소드

Registers a new DbQueryTranslator type for the target provider.
public static RegisterQueryTranslator ( string providerInvariantName, Type queryTranslatorType ) : void
providerInvariantName string The invarient name of the provider.
queryTranslatorType System.Type The concrete implementation of that targets this provider.
리턴 void

SetDefaultProvider() 공개 정적인 메소드

Specifies the name of the default provider that will be used if otherwise not specified. This will also be used in the ToString() override to provide a textual representation of the query during debugging.
public static SetDefaultProvider ( string providerInvariantName ) : void
providerInvariantName string
리턴 void