Class BasicColumnMapping<TEntity>
- Namespace
- Z.BulkOperations
- Assembly
- Z.EntityFramework.Extensions.dll
A column mapping.
public class BasicColumnMapping<TEntity>
Type Parameters
TEntityType of the entity.
- Inheritance
-
BasicColumnMapping<TEntity>
- Inherited Members
Constructors
BasicColumnMapping()
Inherit constructor.
public BasicColumnMapping()
BasicColumnMapping(int, int)
Constructor.
public BasicColumnMapping(int sourceOrdinal, int destinationOrdinal)
Parameters
BasicColumnMapping(int, int, bool)
Constructor.
public BasicColumnMapping(int sourceOrdinal, int destinationOrdinal, bool isPrimaryKey)
Parameters
sourceOrdinalintSource ordinal.
destinationOrdinalintDestination ordinal.
isPrimaryKeybooltrue if this object is primary key, false if not.
BasicColumnMapping(int, int, bool, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(int sourceOrdinal, int destinationOrdinal, bool isPrimaryKey, ColumnMappingDirectionType direction)
Parameters
sourceOrdinalintSource ordinal.
destinationOrdinalintDestination ordinal.
isPrimaryKeybooltrue if this object is primary key, false if not.
directionColumnMappingDirectionTypeThe direction.
BasicColumnMapping(int, int, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(int sourceOrdinal, int destinationOrdinal, ColumnMappingDirectionType direction)
Parameters
sourceOrdinalintSource ordinal.
destinationOrdinalintDestination ordinal.
directionColumnMappingDirectionTypeThe direction.
BasicColumnMapping(int, string)
Constructor.
public BasicColumnMapping(int sourceOrdinal, string destinationName)
Parameters
BasicColumnMapping(Expression<Func<TEntity, object>>)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> columnExpression)
Parameters
columnExpressionExpression<Func<TEntity, object>>
BasicColumnMapping(Expression<Func<TEntity, object>>, bool)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> columnExpression, bool isPrimaryKey)
Parameters
columnExpressionExpression<Func<TEntity, object>>isPrimaryKeybool
BasicColumnMapping(Expression<Func<TEntity, object>>, bool, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> columnExpression, bool isPrimaryKey, ColumnMappingDirectionType direction)
Parameters
columnExpressionExpression<Func<TEntity, object>>isPrimaryKeybooldirectionColumnMappingDirectionType
BasicColumnMapping(Expression<Func<TEntity, object>>, int)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, int destinationOrdinal)
Parameters
sourceExpressionExpression<Func<TEntity, object>>Source expression.
destinationOrdinalintDestination ordinal.
BasicColumnMapping(Expression<Func<TEntity, object>>, int, bool)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, int destinationOrdinal, bool isPrimaryKey)
Parameters
sourceExpressionExpression<Func<TEntity, object>>Source expression.
destinationOrdinalintDestination ordinal.
isPrimaryKeybooltrue if this object is primary key.
BasicColumnMapping(Expression<Func<TEntity, object>>, int, bool, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, int destinationOrdinal, bool isPrimaryKey, ColumnMappingDirectionType direction)
Parameters
sourceExpressionExpression<Func<TEntity, object>>Source expression.
destinationOrdinalintDestination ordinal.
isPrimaryKeybooltrue if this object is primary key.
directionColumnMappingDirectionTypeThe direction.
BasicColumnMapping(Expression<Func<TEntity, object>>, int, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, int destinationOrdinal, ColumnMappingDirectionType direction)
Parameters
sourceExpressionExpression<Func<TEntity, object>>Source expression.
destinationOrdinalintDestination ordinal.
directionColumnMappingDirectionTypeThe direction.
BasicColumnMapping(Expression<Func<TEntity, object>>, string)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, string destinationName)
Parameters
sourceExpressionExpression<Func<TEntity, object>>Source expression.
destinationNamestringName of the destination.
BasicColumnMapping(Expression<Func<TEntity, object>>, string, bool)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, string destinationName, bool isPrimaryKey)
Parameters
sourceExpressionExpression<Func<TEntity, object>>Source expression.
destinationNamestringName of the destination.
isPrimaryKeybooltrue if this object is primary key.
BasicColumnMapping(Expression<Func<TEntity, object>>, string, bool, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, string destinationName, bool isPrimaryKey, ColumnMappingDirectionType direction)
Parameters
sourceExpressionExpression<Func<TEntity, object>>Source expression.
destinationNamestringName of the destination.
isPrimaryKeybooltrue if this object is primary key.
directionColumnMappingDirectionTypeThe direction.
BasicColumnMapping(Expression<Func<TEntity, object>>, string, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, string destinationName, ColumnMappingDirectionType direction)
Parameters
sourceExpressionExpression<Func<TEntity, object>>Source expression.
destinationNamestringName of the destination.
directionColumnMappingDirectionTypeThe direction.
BasicColumnMapping(Expression<Func<TEntity, object>>, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> columnExpression, ColumnMappingDirectionType direction)
Parameters
columnExpressionExpression<Func<TEntity, object>>directionColumnMappingDirectionType
BasicColumnMapping(string)
Constructor.
public BasicColumnMapping(string columnName)
Parameters
columnNamestringName of the column.
BasicColumnMapping(string, bool)
Constructor.
public BasicColumnMapping(string columnName, bool isPrimaryKey)
Parameters
columnNamestringName of the column.
isPrimaryKeybooltrue if this object is primary key, false if not.
BasicColumnMapping(string, bool, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(string columnName, bool isPrimaryKey, ColumnMappingDirectionType direction)
Parameters
columnNamestringName of the column.
isPrimaryKeybooltrue if this object is primary key, false if not.
directionColumnMappingDirectionTypeThe direction.
BasicColumnMapping(string, int)
Constructor.
public BasicColumnMapping(string sourceName, int destinationOrdinal)
Parameters
BasicColumnMapping(string, string)
Constructor.
public BasicColumnMapping(string sourceName, string destinationName)
Parameters
BasicColumnMapping(string, string, bool)
Constructor.
public BasicColumnMapping(string sourceName, string destinationName, bool isPrimaryKey)
Parameters
sourceNamestringName of the source.
destinationNamestringName of the destination.
isPrimaryKeybooltrue if this object is primary key, false if not.
BasicColumnMapping(string, string, bool, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(string sourceName, string destinationName, bool isPrimaryKey, ColumnMappingDirectionType direction)
Parameters
sourceNamestringName of the source.
destinationNamestringName of the destination.
isPrimaryKeybooltrue if this object is primary key, false if not.
directionColumnMappingDirectionTypeThe direction.
BasicColumnMapping(string, string, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(string sourceName, string destinationName, ColumnMappingDirectionType direction)
Parameters
sourceNamestringName of the source.
destinationNamestringName of the destination.
directionColumnMappingDirectionTypeThe direction.
BasicColumnMapping(string, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(string columnName, ColumnMappingDirectionType direction)
Parameters
columnNamestringName of the column.
directionColumnMappingDirectionTypeThe direction.
Properties
Advanced
Gets the advanced.
public ColumnMapping<TEntity> Advanced { get; }
Property Value
- ColumnMapping<TEntity>
The advanced.
DestinationExpression
Gets or sets destination expression.
public Expression<Func<TEntity, object>> DestinationExpression { get; set; }
Property Value
- Expression<Func<TEntity, object>>
The destination expression.
DestinationName
Gets or sets the name of the destination.
public string DestinationName { get; set; }
Property Value
- string
The name of the destination.
DestinationOrdinal
Gets or sets destination ordinal.
public int DestinationOrdinal { get; set; }
Property Value
- int
The destination ordinal.
Direction
Gets or sets the direction.
public ColumnMappingDirectionType Direction { get; set; }
Property Value
- ColumnMappingDirectionType
The direction.
InternalAdvanced
public object InternalAdvanced { get; }
Property Value
IsPrimaryKey
Gets or sets a value indicating whether this object is primary key.
public bool IsPrimaryKey { get; set; }
Property Value
- bool
true if this object is primary key, false if not.
SourceExpression
Gets or sets source expression.
public Expression<Func<TEntity, object>> SourceExpression { get; set; }
Property Value
- Expression<Func<TEntity, object>>
The source expression.
SourceName
Gets or sets the name of the source.
public string SourceName { get; set; }
Property Value
- string
The name of the source.
SourceOrdinal
Gets or sets source ordinal.
public int SourceOrdinal { get; set; }
Property Value
- int
The source ordinal.