Method Map
| Improve this Doc View SourceMap<T>(Column<T>, Column<T>)
Maps between two columns.
Declaration
public static ColumnMapping Map<T>(Column<T> source, Column<T> target)
Parameters
Type | Name | Description |
---|---|---|
Column<T> | source | The source column. |
Column<T> | target | The target column. |
Returns
Type | Description |
---|---|
ColumnMapping | The mapping between these two columns. |
Type Parameters
Name | Description |
---|---|
T | The data type of the column. |
Map<TSource, TTarget>(TSource, TTarget, Action<ColumnMapper, TSource, TTarget>, Boolean)
Maps between two entities.
Declaration
public static IReadOnlyList<ColumnMapping> Map<TSource, TTarget>(TSource source, TTarget target, Action<ColumnMapper, TSource, TTarget> columnMapper, bool isInsertable)
where TSource : class, IEntity, new()
where TTarget : class, IEntity, new()
Parameters
Type | Name | Description |
---|---|---|
TSource | source | The source entity. |
TTarget | target | The target entity. |
System.Action<ColumnMapper, TSource, TTarget> | columnMapper | Delegate to map between entities. If null, default value will be used to map insertable columns. |
System.Boolean | isInsertable | Specifies whether the columns are insertable. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<ColumnMapping> | A list of ColumnMapping between two entities. |
Type Parameters
Name | Description |
---|---|
TSource | Type of the source entity. |
TTarget | Type of the target entity. |