Creates a partial mapping from the specified item type.
Namespace: SimolAssembly: Simol (in Simol.dll) Version: 1.0.0.0
Syntax
C# |
---|
public static ItemMapping Create( Type itemType, List<string> propertyNames ) |
Visual Basic |
---|
Public Shared Function Create ( _ itemType As Type, _ propertyNames As List(Of String) _ ) As ItemMapping |
Visual C++ |
---|
public: static ItemMapping^ Create( Type^ itemType, List<String^>^ propertyNames ) |
Parameters
- itemType
- Type: System..::..Type
Type of the item.
- propertyNames
- Type: System.Collections.Generic..::..List<(Of <(<'String>)>)>
The properties to include in the mapping.
Return Value
Remarks
Only the specified property names are included in the mapping. However,
if you pass an empty list of property names all mapped
properties will be added to the mapping (same behavior as Create(Type)).