RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

TableDefinition<(Of <(<'TEntity>)>)>..::..AddPropertyToPrimaryKey Method

Adds the property to primary key.

Namespace:  RingSoft.DbLookup.ModelDefinition
Assembly:  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.

Return Value

TableDefinition<TEntity>.