Show / Hide Table of Contents

    Class PropertyExpressionAttribute

    Data object property plain expression attribute

    Inheritance
    Object
    Attribute
    PropertyExpressionAttribute
    Inherited Members
    Attribute.Equals(Object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, Boolean)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, Boolean)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, Boolean)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, Boolean)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, Boolean)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, Boolean)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, Boolean)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Boolean)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, Boolean)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, Boolean)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, Boolean)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, Boolean)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, Boolean)
    Attribute.Match(Object)
    Attribute.TypeId
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: XData.Mapping
    Assembly: XData.docfx.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public sealed class PropertyExpressionAttribute : Attribute
    Remarks

    Used when PropertyAttribute value is expression (PlainSql or SubQuery) according ExprType

    Constructors

    | Improve this Doc View Source

    PropertyExpressionAttribute(String, DataExpressionType, DbType)

    Data object property plain expression attribute

    Declaration
    public PropertyExpressionAttribute(string exprText, DataExpressionType exprType = DataExpressionType.PlainSql, DbType type = DbType.String)
    Parameters
    Type Name Description
    String exprText

    Expression text

    DataExpressionType exprType

    Expression type

    DbType type

    Expression DbType

    Exceptions
    Type Condition
    XDataRuntimeException

    Expression text cannot be null or empty string

    Properties

    | Improve this Doc View Source

    DbType

    Expression DbType

    Declaration
    public DbType DbType { get; }
    Property Value
    Type Description
    DbType
    | Improve this Doc View Source

    Exists

    Exists subquery operation

    Declaration
    public ExistsOperation Exists { get; set; }
    Property Value
    Type Description
    ExistsOperation
    | Improve this Doc View Source

    ExprScale

    Expression scale

    Declaration
    public int ExprScale { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    ExprSize

    Expression size

    Declaration
    public int ExprSize { get; set; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    ExprText

    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.

    | Improve this Doc View Source

    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.

    See Also
    DataExpressionType

    Extension Methods

    SerializationExtensions.ToXml<T>(T)
    CollectionsExtensions.SetValue<TKey, T>(TKey, T)
    CollectionsExtensions.AsEnum<T>(T)
    DataObjectQueryableExtensions.CompareVariable(Object, FilterOperation, String)
    Processing.Do<T>(T, Action<IProcess<T>>[])
    TypeExtensions.TryConvert<T, TResult>(T, Func<T, TResult>)
    TypeExtensions.TryConvert<T, TResult>(T, Func<T, TResult>, TResult)
    TypeExtensions.ChangeType<T>(Object)
    TypeExtensions.ChangeType(Object, Type)
    TypeExtensions.InvokeMethod<TRet>(Object, Type[], Expression<Func<TRet>>, BindingFlags)
    TypeExtensions.InvokeMethod(Object, Type[], Expression<Action>, BindingFlags)
    TypeExtensions.InvokeMethod<TRet>(Object, Expression<Func<TRet>>, BindingFlags)
    TypeExtensions.InvokeMethod(Object, Expression<Action>, BindingFlags)
    SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)
    QueryDescriptionExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IQueryStructureAdapter, TResult>>)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX