Show / Hide Table of Contents

    Class DictionaryFilterAttribute

    Data object dictionary filter attribute

    Inheritance
    Object
    Attribute
    FilterBaseAttribute
    FilterAttribute
    DictionaryFilterAttribute
    Inherited Members
    FilterAttribute.Source
    FilterAttribute.FieldName
    FilterAttribute.Operation
    FilterAttribute.Combination
    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)
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: XData.Mapping
    Assembly: XData.docfx.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public sealed class DictionaryFilterAttribute : FilterAttribute
    Remarks

    Filter by dictionary code (example: doc_type_id = (select doc_type_id from t_doc_type where code = 'INVOICE'))

    WARNING! Dictionary restricted by single valued primary key!

    WARNING! Dictionary code mast be unique!

    Examples
        DictionaryFilter("T_DOC_TYPE", "doc_type_id", "code", "INVOICE", "D")

    Constructors

    | Improve this Doc View Source

    DictionaryFilterAttribute(String, String, String, String, String, String)

    Dictionary filter attribute

    Declaration
    public DictionaryFilterAttribute(string dictionaryTable, string dictionaryIdField, string dictionaryCodeField, string dictionaryValue, string source, string fieldName = "")
    Parameters
    Type Name Description
    String dictionaryTable

    Dictionary table name

    String dictionaryIdField

    Dictionary id field

    String dictionaryCodeField

    Dictionary code field

    String dictionaryValue

    Dictionary code value

    String source

    Filter source alias

    String fieldName

    Filter field name

    Exceptions
    Type Condition
    XDataRuntimeException

    Dictionary table name cannot be null or empty string

    XDataRuntimeException

    Dictionary id field cannot be null or empty string

    XDataRuntimeException

    Dictionary code field cannot be null or empty string

    XDataRuntimeException

    Dictionary code value cannot be null or empty string

    Properties

    | Improve this Doc View Source

    DictionaryCode

    Dictionary code field

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

    DictionaryId

    Dictionary id field

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

    DictionaryTable

    Dictionary table name

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

    DictionaryValue

    Dictionary code value

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

    FilterType

    Filter type

    Declaration
    public override FilterType FilterType { get; }
    Property Value
    Type Description
    FilterType Dictionary
    Overrides
    FilterBaseAttribute.FilterType
    | Improve this Doc View Source

    IsVariableValue

    Variable name as filter value

    Declaration
    public bool IsVariableValue { get; set; }
    Property Value
    Type Description
    Boolean
    Remarks

    If true DictionaryValue contains data object variable name which value will be compared with Dictionary code

    | Improve this Doc View Source

    TypeId

    When implemented in a derived class, gets a unique identifier for this Attribute.

    Declaration
    public override object TypeId { get; }
    Property Value
    Type Description
    Object

    An Object that is a unique identifier for the attribute.

    Overrides
    Attribute.TypeId

    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>>)

    See Also

    Dictionary
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX