Table of Contents

Class SqlExecuteAttribute

Namespace
SqlBound
Assembly
SqlBound.dll

Marks a static partial method whose implementation is emitted by the SqlBound source generator: the method executes commandText as a non-query statement (INSERT/UPDATE/DELETE/DDL), returning the number of affected rows (Task<int>) or discarding it (Task).

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class SqlExecuteAttribute : Attribute
Inheritance
SqlExecuteAttribute
Inherited Members

Constructors

SqlExecuteAttribute(string)

Marks a static partial method whose implementation is emitted by the SqlBound source generator: the method executes commandText as a non-query statement (INSERT/UPDATE/DELETE/DDL), returning the number of affected rows (Task<int>) or discarding it (Task).

public SqlExecuteAttribute(string commandText)

Parameters

commandText string

The SQL statement the generated implementation executes.

Properties

CommandText

Gets the SQL statement the generated implementation executes.

public string CommandText { get; }

Property Value

string