Skip to main content

EntityTraits<TEntity, TPrimaryKey> Constructors

Incapsulates operations to obtain and set the primary key value of a given entity.
Name Parameters Description
EntityTraits(Func<TEntity, TPrimaryKey>, Action<TEntity, TPrimaryKey>, Func<TEntity, Boolean>) getPrimaryKeyFunction, setPrimaryKeyAction, hasPrimaryKeyFunction Initializes a new instance of the EntityTraits<TEntity, TPrimaryKey> class.
See Also