public GetWorking ( long id, IDbTransaction transaction ) : |
||
id | long | The ID of the record to get. |
transaction | IDbTransaction | The transaction to use, if applicable. |
Résultat |
public WorkingRecord GetWorking(long id, IDbTransaction transaction)
{
const string Sql =
@"SELECT *
FROM [BlueCollarWorking]
WHERE
[Id] = @Id;";
return this.connection.Query<WorkingRecord>(
Sql,
new { Id = id },
transaction,
true,
null,
null).FirstOrDefault();
}