A Sandcastle Documented Class Library

# ModelDataExtensions Class

Extension methods that can be used to create an object and map (copy) properties of existing object over the new one.
Inheritance Hierarchy
System
Object
Dundas.BI.WebApi.Models
ModelDataExtensions

Namespace: Dundas.BI.WebApi.Models
Assembly: Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public static class ModelDataExtensions

    <ExtensionAttribute>
    Public NotInheritable Class ModelDataExtensions

    [ExtensionAttribute]
    public ref class ModelDataExtensions abstract sealed

    [<AbstractClassAttribute>]
    [<SealedAttribute>]
    [<ExtensionAttribute>]
    type ModelDataExtensions =  class end

The ModelDataExtensions type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| ConvertAndCopyIEnumerableToList | Copies the FileSystemEntry enumerable collection to a list of FileData.
| ConvertAndCopyReadOnlyDictionaryToList(IReadOnlyDictionary Guid, CheckInFailureReason , IList CheckInFailureDetailData ) | Converts the IReadOnlyDictionary TKey, TValue and copies to a list of CheckInFailureDetailData.
| ConvertAndCopyReadOnlyDictionaryToList(IReadOnlyDictionary Guid, CheckOutFailureReason , IList CheckOutFailureDetailData ) | Converts the IReadOnlyDictionary TKey, TValue and copies to a list of CheckOutFailureDetailData.
| ConvertAndCopyReadOnlyDictionaryToList(IReadOnlyDictionary Guid, DeleteFailureReason , IList DeleteFailureDetailData ) | Converts the IReadOnlyDictionary TKey, TValue and copies to a list of DeleteFailureDetailData.
| ConvertAndCopyReadOnlyDictionaryToList(IReadOnlyDictionary Guid, EnsureVisibleFailureReason , IList EnsureVisibleFailureDetailData ) | Converts the IReadOnlyDictionary TKey, TValue and copies to a list of EnsureVisibleFailureDetailData.
| ConvertAndCopyReadOnlyDictionaryToList(IReadOnlyDictionary Guid, RestoreFailureReason , IList RestoreFailureDetailData ) | Converts the IReadOnlyDictionary TKey, TValue and copies to a list of RestoreFailureDetailData.
| ConvertAndCopyReadOnlyDictionaryToList(IReadOnlyDictionary Guid, UndoCheckOutFailureReason , IList UndoCheckOutFailureDetailData ) | Converts the IReadOnlyDictionary TKey, TValue and copies to a list of UndoCheckOutFailureDetailData.
| CopyAndConvertList T1, T2 (IEnumerable T1 , IList T2 ) | Copies and converts the list. GetObject TSource, TTarget (TSource) is used.
| CopyAndConvertList T1, T2 (IEnumerable T1 , ICollection T2 , ReadOnlyDictionary String, Action T1, T2 ) | Copies and converts the list. GetObject TSource, TTarget (TSource) is used.
| CopyAndConvertListMaybeBuggy T1, T2 (IEnumerable T1 , IList T2 ) |
| CopyAndConvertListMaybeBuggy T1, T2 (IEnumerable T1 , ICollection T2 , ReadOnlyDictionary String, Action T1, T2 ) |
| CopyFromList | Copies an enumerable of AppSettingTransferSpecData to list of AppSettingTransferSpec.
| CopyListToSet T | Helper method to copy a list into a 'Set'.
| CopySetToList T | Helper method to copy one 'Set' object into a list.
| CopyTo TSource, TTarget (TSource, TTarget) | Copies properties from the source type to the target type using default mapping rule - mapping by name.
| CopyTo TSource, TTarget (TSource, TTarget, IReadOnlyDictionary String, Action TSource, TTarget ) | Copies properties from the source type to the target type using default mapping rule - mapping by name.
| CopyToActionBaseCollection | Copies an action base from a list onto an existing list.
| CopyToActionData | Copies to ActionBase source list to a ActionData contract list destination.
| CopyToConnectorElement | Copies to connector element.
| CopyToDictionary(IList CustomAttributeData , IDictionary Guid, CustomAttributeValue ) | Copies list of pairs to dictionary.
| CopyToDictionary(IList KeyValuePairData , IDictionary String, String ) | Copies list of pairs to dictionary.
| CopyToDictionary(IList ProviderPropertyOverrideData , IDictionary Guid, ParameterValueCollection ) | Copies a list to a dictionary.
| CopyToLevelSorting | Copies to level sorting.
| CopyToList(IDictionary Guid, CustomAttributeInfo , IList CustomAttributeInfoListItemData ) | Copies a dictionary to list of pairs.
| CopyToList(IDictionary Guid, CustomAttributeValue , IList CustomAttributeData ) | Copies a dictionary to list of pairs.
| CopyToList(IDictionary Guid, ParameterValueCollection , IList ProviderPropertyOverrideData ) | Copies a dictionary to list of pairs.
| CopyToList(IDictionary String, String , IList KeyValuePairData ) | Copies a dictionary to list of pairs.
| CopyToList(IReadOnlyDictionary Guid, TransferItemResult , IList TransferItemResultData ) | Copies a dictionary to list of pairs.
| CopyToList(IEnumerable AppSettingTransferSpec , IList AppSettingTransferSpecData ) | Copies an enumerable of AppSettingTransferSpec to list of AppSettingTransferSpecData.
| CopyToList(IEnumerable TransferItemResult , IList TransferItemResultData ) | Copies an enumerable of TransferItemResult to list of TransferItemResultData.
| CopyToList(IDictionary String, IHierarchy , IList HierarchyData , ReadOnlyDictionary String, Action IHierarchy, HierarchyData ) | Copies a dictionary to list of pairs.
| CopyToList(IReadOnlyDictionary Guid, CustomAttributeValue , IList CustomAttributeData , Nullable Guid , Boolean) | Copies a dictionary to list of pairs.
| CopyToMemberDrillDownValue | Copies to member value.
| CopyToParameter | Copies to parameter.
| CopyToParameterValueCollection | Copies a parameter value from a list onto an existing collection.
| CopyToParameterValueData | Copies to ParameterValue source list to a ParameterValueData contract list destination.
| CopyToRelationalColumns | Copies to relational columns.
| CopyToStates | Copies to states.
| CopyToTransformConnector | Copies to transform connector.
| CreateMapping TSource, TTarget (TSource) | Creates a mapping object. This is an object that can create an object of given type and copy all public properties from an existing object over the new one. This mapping object can be extended with custom mapping rules.
| CreateMapping TSource, TTarget (TSource, ReadOnlyDictionary String, Action TSource, TTarget , Func TSource, TTarget ) | Creates a mapping object. This is an object that can create an object of given type and copy all public properties from an existing object over the new one. This mapping object can be extended with custom mapping rules.
| GetCultureInfo | Helper method to copy the culture info.
| GetObject TSource, TTarget (TSource) | Creates a object of the target type and maps all properties using default mapping rule - mapping by name.
| GetObject TSource, TTarget (TSource, ReadOnlyDictionary String, Action TSource, TTarget ) | Creates a object of the target type and maps all properties using default mapping rule - mapping by name.
| GetObject TSource, TTarget (TSource, ReadOnlyDictionary String, Action TSource, TTarget , Func TSource, TTarget ) | Creates a object of the target type and maps all properties using default mapping rule - mapping by name.
| SetUIClassName(AnalysisElementUsageData, AnalysisElementUsage) | Sets the name of the analysis element usage UI class.
| SetUIClassName(FileData, FileSystemEntry) | Sets the name of the file data UI class.
| SetUIClassName(TokenDefinitionData, TokenDefinition) | Sets the name of the token definition UI class.
| SetUIClassName(ViewData, View) | Sets the name of the view data UI class.

Top
See Also

#### Reference

Dundas.BI.WebApi.Models Namespace