C# Класс Composite.Data.Foundation.EmptyDataClassTypeManager

This class caches and if needed creates data empty classes runtime.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetEmptyDataClassType ( DataTypeDescriptor dataTypeDescriptor, bool forceReCompilation = false ) : Type

This method will return the type of the empty data class type. If the type does not exist, one will be runtime code generated using the dataTypeDescriptor.

GetEmptyDataClassType ( Type interfaceType, bool forceReCompilation = false ) : Type

This method will return the type of the empty data class type. If the type does not exist, one will be runtime code generated using the type to get a data type descriptor.

Приватные методы

Метод Описание
CreateEmptyDataClassType ( DataTypeDescriptor dataTypeDescriptor, Type baseClassType = null, CodeAttributeDeclaration codeAttributeDeclaration = null ) : Type
EmptyDataClassTypeManager ( ) : System
Flush ( ) : void
GetEmptyClassFromBuildNewHandler ( DataTypeDescriptor dataTypeDescriptor ) : Type
OnFlushEvent ( FlushEventArgs args ) : void
VerifyAssemblyLocation ( Type interfaceType ) : void

Описание методов

GetEmptyDataClassType() публичный статический Метод

This method will return the type of the empty data class type. If the type does not exist, one will be runtime code generated using the dataTypeDescriptor.
public static GetEmptyDataClassType ( DataTypeDescriptor dataTypeDescriptor, bool forceReCompilation = false ) : Type
dataTypeDescriptor Composite.Data.DynamicTypes.DataTypeDescriptor /// The data type descriptor for the data type to get /// the empty class type for. ///
forceReCompilation bool /// If this is true a new empty class will be /// compiled at runtime regardless if it exists or not. /// Use with caution! ///
Результат System.Type

GetEmptyDataClassType() публичный статический Метод

This method will return the type of the empty data class type. If the type does not exist, one will be runtime code generated using the type to get a data type descriptor.
public static GetEmptyDataClassType ( Type interfaceType, bool forceReCompilation = false ) : Type
interfaceType System.Type The data interface type to get the empty class type for.
forceReCompilation bool /// If this is true a new empty class will be /// compiled at runtime regardless if it exists or not. /// Use with caution! ///
Результат System.Type