TableDefinition<(Of <(<'TEntity>)>)>..::..AddPropertyToPrimaryKey Method
Adds the property to primary key.
Namespace:
RingSoft.DbLookup.ModelDefinitionAssembly: RingSoft.DbLookup (in RingSoft.DbLookup.dll)
Syntax
public TableDefinition<TEntity> AddPropertyToPrimaryKey( Expression<Func<TEntity, Object>> entityProperty )
Public Function AddPropertyToPrimaryKey ( _ entityProperty As Expression(Of Func(Of TEntity, Object)) _ ) As TableDefinition(Of TEntity)
public: TableDefinition<TEntity>^ AddPropertyToPrimaryKey( Expression<Func<TEntity, Object^>^>^ entityProperty )
Parameters
- entityProperty
- Type: Expression<(Of <(<'Func<(Of <(<'TEntity, Object>)>)>>)>)>
The entity property.