Class PropertyUpdateWithAttribute
Data object property update source expression attribute
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class PropertyUpdateWithAttribute : Attribute
Remarks
Used when PropertyAttribute value must to be updated with expression (PlainSql or SubQuery) result according ExprType
Constructors
| Improve this Doc View SourcePropertyUpdateWithAttribute(String, DataExpressionType)
Data object property plain expression attribute
Declaration
public PropertyUpdateWithAttribute(string exprText, DataExpressionType exprType = DataExpressionType.PlainSql)
Parameters
Type | Name | Description |
---|---|---|
String | exprText | Expression text |
DataExpressionType | exprType | Expression type |
Exceptions
Type | Condition |
---|---|
XDataRuntimeException | Expression text cannot be null or empty string |
Properties
| Improve this Doc View SourceExprText
Expression text
Declaration
public string ExprText { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
PlainSql expression text is Sql expression or SqlExpressionAttribute name
SubQuery expression text is Alias
WARNING! Plain Sql expressions (see ExprType) can use specific SQL dialect features!
Data mapping may be not compatible with other database engines! Use SqlExpressionAttribute instead.
ExprType
Expression type
Declaration
public DataExpressionType ExprType { get; }
Property Value
Type | Description |
---|---|
DataExpressionType |
Remarks
WARNING! Plain Sql expressions can use specific Sql dialect features! Data mapping may be not compatible with other database engines! Use SqlExpressionAttribute instead.