Reference > Utilities > dbex

dbex.GetDefaultMappingFor

The dbex.GetDefaultMappingFor method returns a delegate for mapping data to an instance of an entity. The method is most commonly used in conjunction with dbex.SelectAllFor.

Syntax

dbex.GetDefaultMappingFor({entity_expression})

Arguments

entity_expression
The table entity for the entity type the mapping applies to.

Returns

Action<ISqlFieldReader, TEntity>
A delegate that receives a field reader and an instance of an entity.
syntax examples
Previous
dbex.Alias

© 2024 dbExpression. All rights reserved.