Class DefaultSourceProvider
The data container provides to kinds of sources when a fix
data source is used for multiple scenarios.
Inheritance
System.Object
DefaultSourceProvider
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Mars.Core.Data.Mapping
Assembly: Mars.Core.dll
Syntax
public class DefaultSourceProvider
Remarks
Mostly this provider is used for testing purposes only.
Constructors
| Improve this Doc View SourceDefaultSourceProvider()
Creates a new DefaultSourceProvider without any data references. No default data.
Declaration
public DefaultSourceProvider()
Remarks
Mostly this provider is used for testing purposes only.
|
Improve this Doc
View Source
DefaultSourceProvider(DataTable, IEnumerable<(Type, DataTable)>)
Creates a new DefaultSourceProvider used as a data transfer container for all default data sets.
Declaration
public DefaultSourceProvider(DataTable defaultSource, IEnumerable<(Type, DataTable)> defaultSourceForType)
Parameters
Type | Name | Description |
---|---|---|
System.Data.DataTable | defaultSource | The default data source to construct entities from. Can be null. |
System.Collections.Generic.IEnumerable<System.ValueTuple<System.Type, System.Data.DataTable>> | 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
| Improve this Doc View SourceDefaultSource
Gets the default source valid for all types.
Declaration
public DataTable DefaultSource { get; set; }
Property Value
Type | Description |
---|---|
System.Data.DataTable |
Remarks
Mostly this provider is used for testing purposes only.
|
Improve this Doc
View Source
DefaultTypeSources
Gets the dictionary with sources valid only for a specific type.
Declaration
public IDictionary<Type, DataTable> DefaultTypeSources { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Type, System.Data.DataTable> |
Remarks
Mostly this provider is used for testing purposes only.