Class BasicColumnMapping<TEntity>
- Namespace
- Z.BulkOperations
- Assembly
- Z.EntityFramework.Extensions.dll
A column mapping.
public class BasicColumnMapping<TEntity>
Type Parameters
TEntity
Type 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
sourceOrdinal
intSource ordinal.
destinationOrdinal
intDestination ordinal.
isPrimaryKey
booltrue 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
sourceOrdinal
intSource ordinal.
destinationOrdinal
intDestination ordinal.
isPrimaryKey
booltrue if this object is primary key, false if not.
direction
ColumnMappingDirectionTypeThe direction.
BasicColumnMapping(int, int, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(int sourceOrdinal, int destinationOrdinal, ColumnMappingDirectionType direction)
Parameters
sourceOrdinal
intSource ordinal.
destinationOrdinal
intDestination ordinal.
direction
ColumnMappingDirectionTypeThe 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
columnExpression
Expression<Func<TEntity, object>>
BasicColumnMapping(Expression<Func<TEntity, object>>, bool)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> columnExpression, bool isPrimaryKey)
Parameters
columnExpression
Expression<Func<TEntity, object>>isPrimaryKey
bool
BasicColumnMapping(Expression<Func<TEntity, object>>, bool, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> columnExpression, bool isPrimaryKey, ColumnMappingDirectionType direction)
Parameters
columnExpression
Expression<Func<TEntity, object>>isPrimaryKey
booldirection
ColumnMappingDirectionType
BasicColumnMapping(Expression<Func<TEntity, object>>, int)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, int destinationOrdinal)
Parameters
sourceExpression
Expression<Func<TEntity, object>>Source expression.
destinationOrdinal
intDestination ordinal.
BasicColumnMapping(Expression<Func<TEntity, object>>, int, bool)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, int destinationOrdinal, bool isPrimaryKey)
Parameters
sourceExpression
Expression<Func<TEntity, object>>Source expression.
destinationOrdinal
intDestination ordinal.
isPrimaryKey
booltrue 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
sourceExpression
Expression<Func<TEntity, object>>Source expression.
destinationOrdinal
intDestination ordinal.
isPrimaryKey
booltrue if this object is primary key.
direction
ColumnMappingDirectionTypeThe direction.
BasicColumnMapping(Expression<Func<TEntity, object>>, int, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, int destinationOrdinal, ColumnMappingDirectionType direction)
Parameters
sourceExpression
Expression<Func<TEntity, object>>Source expression.
destinationOrdinal
intDestination ordinal.
direction
ColumnMappingDirectionTypeThe direction.
BasicColumnMapping(Expression<Func<TEntity, object>>, string)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, string destinationName)
Parameters
sourceExpression
Expression<Func<TEntity, object>>Source expression.
destinationName
stringName of the destination.
BasicColumnMapping(Expression<Func<TEntity, object>>, string, bool)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, string destinationName, bool isPrimaryKey)
Parameters
sourceExpression
Expression<Func<TEntity, object>>Source expression.
destinationName
stringName of the destination.
isPrimaryKey
booltrue 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
sourceExpression
Expression<Func<TEntity, object>>Source expression.
destinationName
stringName of the destination.
isPrimaryKey
booltrue if this object is primary key.
direction
ColumnMappingDirectionTypeThe direction.
BasicColumnMapping(Expression<Func<TEntity, object>>, string, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> sourceExpression, string destinationName, ColumnMappingDirectionType direction)
Parameters
sourceExpression
Expression<Func<TEntity, object>>Source expression.
destinationName
stringName of the destination.
direction
ColumnMappingDirectionTypeThe direction.
BasicColumnMapping(Expression<Func<TEntity, object>>, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(Expression<Func<TEntity, object>> columnExpression, ColumnMappingDirectionType direction)
Parameters
columnExpression
Expression<Func<TEntity, object>>direction
ColumnMappingDirectionType
BasicColumnMapping(string)
Constructor.
public BasicColumnMapping(string columnName)
Parameters
columnName
stringName of the column.
BasicColumnMapping(string, bool)
Constructor.
public BasicColumnMapping(string columnName, bool isPrimaryKey)
Parameters
columnName
stringName of the column.
isPrimaryKey
booltrue if this object is primary key, false if not.
BasicColumnMapping(string, bool, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(string columnName, bool isPrimaryKey, ColumnMappingDirectionType direction)
Parameters
columnName
stringName of the column.
isPrimaryKey
booltrue if this object is primary key, false if not.
direction
ColumnMappingDirectionTypeThe 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
sourceName
stringName of the source.
destinationName
stringName of the destination.
isPrimaryKey
booltrue 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
sourceName
stringName of the source.
destinationName
stringName of the destination.
isPrimaryKey
booltrue if this object is primary key, false if not.
direction
ColumnMappingDirectionTypeThe direction.
BasicColumnMapping(string, string, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(string sourceName, string destinationName, ColumnMappingDirectionType direction)
Parameters
sourceName
stringName of the source.
destinationName
stringName of the destination.
direction
ColumnMappingDirectionTypeThe direction.
BasicColumnMapping(string, ColumnMappingDirectionType)
Constructor.
public BasicColumnMapping(string columnName, ColumnMappingDirectionType direction)
Parameters
columnName
stringName of the column.
direction
ColumnMappingDirectionTypeThe 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.