Class Sql.FunctionAttribute
Defines an SQL server-side Function with parameters passed in.
Inherited Members
Namespace: LinqToDB
Assembly: linq2db.dll
Syntax
public class FunctionAttribute : Sql.ExpressionAttribute
Constructors
| Improve this Doc View SourceFunctionAttribute()
Defines an SQL Function, which shall be the same as the name as the function called.
Declaration
public FunctionAttribute()
FunctionAttribute(String)
Defines an SQL function with the given name.
Declaration
public FunctionAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the function. no parenthesis () should be used. |
FunctionAttribute(String, Int32[])
Defines an SQL function with the given name.
Declaration
public FunctionAttribute(string name, params int[] argIndices)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the function. no parenthesis () should be used. |
System.Int32[] | argIndices | Used for setting the order of the method arguments being passed into the function. |
FunctionAttribute(String, String)
Defines an SQL function with the given name, for the ProviderName given.
Declaration
public FunctionAttribute(string configuration, string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | configuration | The Database configuration for which this Expression will be used. |
System.String | name | The name of the function. no parenthesis () should be used. |
FunctionAttribute(String, String, Int32[])
Defines an SQL function with the given name, for the ProviderName given.
Declaration
public FunctionAttribute(string configuration, string name, params int[] argIndices)
Parameters
Type | Name | Description |
---|---|---|
System.String | configuration | The Database configuration for which this Expression will be used. |
System.String | name | The name of the function. no parenthesis () should be used. |
System.Int32[] | argIndices | Used for setting the order of the method arguments being passed into the function. |
Properties
| Improve this Doc View SourceName
The name of the Database Function
Declaration
public string? Name { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Methods
| Improve this Doc View SourceGetExpression<TContext>(TContext, IDataContext, SelectQuery, Expression, Func<TContext, Expression, ColumnDescriptor, ISqlExpression>)
Declaration
public override ISqlExpression GetExpression<TContext>(TContext context, IDataContext dataContext, SelectQuery query, Expression expression, Func<TContext, Expression, ColumnDescriptor, ISqlExpression> converter)
Parameters
Type | Name | Description |
---|---|---|
TContext | context | |
IDataContext | dataContext | |
SelectQuery | query | |
Expression | expression | |
Func<TContext, Expression, ColumnDescriptor, ISqlExpression> | converter |
Returns
Type | Description |
---|---|
ISqlExpression |
Type Parameters
Name | Description |
---|---|
TContext |
Overrides
GetObjectID()
Declaration
public override string GetObjectID()
Returns
Type | Description |
---|---|
System.String |