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
Returns
Type | Description |
---|---|
Column |
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. |
columnMapper | Delegate to map between entities. If null, default value will be used to map insertable columns. |
System. |
isInsertable | Specifies whether the columns are insertable. |
Returns
Type | Description |
---|---|
System. |
A list of Column |
Type Parameters
Name | Description |
---|---|
TSource | Type of the source entity. |
TTarget | Type of the target entity. |