Class SqlQueryAttribute
Runs a query. A method returning IEnumerable<T> (or a task of one) gets all rows,
any other return type gets the first row or default.
Inherited Members
Namespace: Activout.DatabaseClient.Attributes
Assembly: Activout.DatabaseClient.dll
Syntax
public class SqlQueryAttribute : AbstractSqlAttribute
Constructors
| Edit this page View SourceSqlQueryAttribute(string)
Creates the attribute.
Declaration
public SqlQueryAttribute(string sql)
Parameters
| Type | Name | Description |
|---|---|---|
| string | sql | The query to run. |