C# Класс Composite.Data.DataMetaDataFacade

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DeleteMetaData ( System.Guid dataTypeId ) : void
GetDataTypeDescriptor ( System.Guid dataTypeId, bool allowTypeMetaDataCreation = false ) : DataTypeDescriptor

This method will return the data type descriptor for the given data type id. If the data type descriptor has not yet been created (file not existing) and the allowTypeMetaDataCreation is set to true, this method will try getting it through the Composite.Data.DynamicTypes.Foundation.ReflectionBasedDescriptorBuilder that will try locating the type from the data type id using refelection going through know assemblies.

GetDataTypeDescriptor ( Type interfaceType, bool allowTypeMetaDataCreation = false ) : DataTypeDescriptor

This method will return the data type descriptor for the given data type id. If the data type descriptor has not yet been created (file not existing) and the allowTypeMetaDataCreation is set to true, this method will try getting it through the Composite.Data.DynamicTypes.Foundation.ReflectionBasedDescriptorBuilder based on interfaceType.

PersistMetaData ( DataTypeDescriptor dataTypeDescriptor ) : void

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

Метод Описание
CreateFilename ( DataTypeDescriptor dataTypeDescriptor ) : string
DataMetaDataFacade ( ) : System
Flush ( ) : void
GetGuidFromFilename ( string filepath ) : System.Guid
GetTypeManagerTypeNameToTypeIdMap ( ) : Guid>.Dictionary

Used for processing xml/sql data providers configuration build by C1 vesrion older than 3.0

Initialize ( ) : void
IsMetaDataFileName ( string fileNameWithoutExtension ) : bool
LoadFromFile ( string filePath ) : DataTypeDescriptor
UpdateFilenames ( ) : void

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

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

public static DeleteMetaData ( System.Guid dataTypeId ) : void
dataTypeId System.Guid
Результат void

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

This method will return the data type descriptor for the given data type id. If the data type descriptor has not yet been created (file not existing) and the allowTypeMetaDataCreation is set to true, this method will try getting it through the Composite.Data.DynamicTypes.Foundation.ReflectionBasedDescriptorBuilder that will try locating the type from the data type id using refelection going through know assemblies.
public static GetDataTypeDescriptor ( System.Guid dataTypeId, bool allowTypeMetaDataCreation = false ) : DataTypeDescriptor
dataTypeId System.Guid The id of the data type.
allowTypeMetaDataCreation bool /// If this is true and the data type descriptor does not exists, the method will try to create it. ///
Результат Composite.Data.DynamicTypes.DataTypeDescriptor

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

This method will return the data type descriptor for the given data type id. If the data type descriptor has not yet been created (file not existing) and the allowTypeMetaDataCreation is set to true, this method will try getting it through the Composite.Data.DynamicTypes.Foundation.ReflectionBasedDescriptorBuilder based on interfaceType.
public static GetDataTypeDescriptor ( Type interfaceType, bool allowTypeMetaDataCreation = false ) : DataTypeDescriptor
interfaceType System.Type The data type.
allowTypeMetaDataCreation bool /// If this is true and the data type descriptor does not exists, it will be created. ///
Результат Composite.Data.DynamicTypes.DataTypeDescriptor

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

public static PersistMetaData ( DataTypeDescriptor dataTypeDescriptor ) : void
dataTypeDescriptor Composite.Data.DynamicTypes.DataTypeDescriptor
Результат void