Class Sql.PropertyAttribute
An attribute used to define a static value or a Database side property/method that takes no parameters.
Inherited Members
Namespace: LinqToDB
Assembly: linq2db.dll
Syntax
public class PropertyAttribute : Sql.ExpressionAttribute
Constructors
| Improve this Doc View SourcePropertyAttribute()
Creates a property to be used in SQL The name of the Property/Method will be used.
Declaration
public PropertyAttribute()
PropertyAttribute(String)
Creates a Property to be used in SQL.
Declaration
public PropertyAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property. |
PropertyAttribute(String, String)
Creates a property to be used in SQL for the given ProviderName.
Declaration
public PropertyAttribute(string configuration, string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | configuration | The ProviderName the property will be used under. |
System.String | name | The name of the property. |
Properties
| Improve this Doc View SourceName
The name of the Property.
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
LinqToDB.Sql.ExpressionAttribute.GetExpression<TContext>(TContext, LinqToDB.IDataContext, LinqToDB.SqlQuery.SelectQuery, Expression, Func<TContext, Expression, LinqToDB.Mapping.ColumnDescriptor, LinqToDB.SqlQuery.ISqlExpression>)
|
Improve this Doc
View Source
GetObjectID()
Declaration
public override string GetObjectID()
Returns
Type | Description |
---|---|
System.String |