Table of Contents

Class SqlQueryAttribute

Namespace
SqlBound
Assembly
SqlBound.dll

Marks a static partial method whose implementation is emitted by the SqlBound source generator: the method executes commandText and materializes the result rows into the method's declared return type with straight-line, reflection-free reader code.

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

Constructors

SqlQueryAttribute(string)

Marks a static partial method whose implementation is emitted by the SqlBound source generator: the method executes commandText and materializes the result rows into the method's declared return type with straight-line, reflection-free reader code.

public SqlQueryAttribute(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