C# Class Composite.Data.Foundation.EmptyDataClassTypeManager

This class caches and if needed creates data empty classes runtime.
Show file Open project: Orckestra/C1-CMS

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

GetEmptyDataClassType() public static method

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! ///
return System.Type

GetEmptyDataClassType() public static method

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! ///
return System.Type