Class BindAttribute
Binds a method parameter, or a property of a BindPropertiesAttribute parameter, to a named SQL parameter.
Inherited Members
Namespace: Activout.DatabaseClient.Attributes
Assembly: Activout.DatabaseClient.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter)]
public class BindAttribute : Attribute
Constructors
| Edit this page View SourceBindAttribute()
Binds using the C# parameter or property name.
Declaration
public BindAttribute()
BindAttribute(string)
Binds to the given SQL parameter name.
Declaration
public BindAttribute(string parameterName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parameterName | The SQL parameter name, without prefix. |
Properties
| Edit this page View SourceParameterName
The SQL parameter name, or null to use the C# parameter or property name.
Declaration
public string? ParameterName { get; }
Property Value
| Type | Description |
|---|---|
| string |