Class DefaultSourceProvider
The data container provides to kinds of sources when a fix
data source is used for multiple scenarios.
Inheritance
System.Object
DefaultSourceProvider
Namespace: Mars.Core.Data.Mapping
Assembly: Mars.Core.dll
Syntax
public class DefaultSourceProvider : object
Remarks
Mostly this provider is used for testing purposes only.
Constructors
DefaultSourceProvider()
Creates a new DefaultSourceProvider without any data references. No default data.
Declaration
public DefaultSourceProvider()
DefaultSourceProvider(DataTable, IEnumerable<>)
Creates a new DefaultSourceProvider used as a data transfer container for all default data sets.
Declaration
public DefaultSourceProvider(DataTable defaultSource, IEnumerable<> defaultSourceForType)
Parameters
Type | Name | Description |
---|---|---|
DataTable | defaultSource | The default data source to construct entities from. Can be null. |
IEnumerable<System.> | defaultSourceForType | The default data sources separated for each type. Can be null. |
Remarks
The and should only being used for testing
purposes.
All inputs should be configured by the input mapping otherwise.
Properties
DefaultSource
Gets the default source valid for all types.
Declaration
public DataTable DefaultSource { get; set; }
Property Value
Type | Description |
---|---|
DataTable |
DefaultTypeSources
Gets the dictionary with sources valid only for a specific type.
Declaration
public IDictionary<Type, DataTable> DefaultTypeSources { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<Type, DataTable> |