C# Class IdeaBlade.Drivers.DevForceTypes

This class provides access to DevForce types, objects, etc. using reflection and dynamic typing. LINQPad creates an AppDomain per query tab, but will (usually) reuse that AppDomain for other queries executed on that tab. So statics can be useful, at least when the same query tab is reused.
ファイルを表示 Open project: IdeaBlade/DevForce.Utilities Class Usage Examples

Public Methods

Method Description
CheckComposition ( IConnectionInfo cxInfo ) : void
GetAssembliesToAdd ( string customPath ) : IEnumerable
InitializeEntityManager ( object entityManager ) : void

Set a DataSourceOnly query strategy. If non-credentialed login is not supported, you should modify this code to also login here. The DataSourceOnly query strategy is more efficient, since cache isn't helpful when LINQPad recreates the EM for each query.

IsComplexType ( Type t ) : bool

Calls EntityMetadata.IsComplexType method.

Private Methods

Method Description
GetInstallFolderFromRegistry ( ) : string
LoadAssembly ( string name, bool throwIfNotFound = false ) : Assembly

Method Details

CheckComposition() public static method

public static CheckComposition ( IConnectionInfo cxInfo ) : void
cxInfo IConnectionInfo
return void

GetAssembliesToAdd() public static method

public static GetAssembliesToAdd ( string customPath ) : IEnumerable
customPath string
return IEnumerable

InitializeEntityManager() public static method

Set a DataSourceOnly query strategy. If non-credentialed login is not supported, you should modify this code to also login here. The DataSourceOnly query strategy is more efficient, since cache isn't helpful when LINQPad recreates the EM for each query.
public static InitializeEntityManager ( object entityManager ) : void
entityManager object
return void

IsComplexType() public static method

Calls EntityMetadata.IsComplexType method.
public static IsComplexType ( Type t ) : bool
t System.Type
return bool