SqlSet.Find Method
Gets the entity whose primary key matches the id parameter.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public Object Find(
Object id
)
Parameters
id
Type: System.Object
The primary key value.
Return Value
Type: Object
The entity whose primary key matches the id parameter, or null if the id does not exist.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | This method can only be used on sets where the result type is an annotated class. |