Show / Hide Table of Contents

    Class Link<TVal, TSrc>

    Dictionary link wrapper

    Inheritance
    Object
    Link<TVal, TSrc>
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: XData.Mapping
    Assembly: XData.docfx.dll
    Syntax
    public abstract class Link<TVal, TSrc> : ILink where TVal : IComparable<TVal> where TSrc : class, IDataObject, new()
    Type Parameters
    Name Description
    TVal

    Link value type

    TSrc

    Link source type

    Examples
        // declaration
            [Property("name", "S"), 
                DictionaryProperty("Name", "DocState"),
                DictionaryProperty("Code", "DocStateCode")]
            public Link<string, DocState> DocState { get; set; }
        // using
            newInvoice.DocState += dataScope.GetDictionaryValue<DocState>(x => x.Code == "CREATED");
        // is the same as
            newInvoice.DocState.Source = dataScope.GetDictionaryValue<DocState>(x => x.Code == "CREATED");

    Properties

    | Improve this Doc View Source

    Source

    Dictionary source data object

    Declaration
    public abstract TSrc Source { set; }
    Property Value
    Type Description
    TSrc
    | Improve this Doc View Source

    Value

    Dictionary value

    Declaration
    public TVal Value { get; protected set; }
    Property Value
    Type Description
    TVal

    Methods

    | Improve this Doc View Source

    IsNull()

    Check link for null value

    Declaration
    public bool IsNull()
    Returns
    Type Description
    Boolean

    Link is null

    | Improve this Doc View Source

    Key<TKey>(String)

    Declaration
    public abstract TKey Key<TKey>(string keyProperty)
    Parameters
    Type Name Description
    String keyProperty
    Returns
    Type Description
    TKey
    Type Parameters
    Name Description
    TKey

    Operators

    | Improve this Doc View Source

    Addition(Link<TVal, TSrc>, TSrc)

    Set link source

    Declaration
    public static Link<TVal, TSrc> operator +(Link<TVal, TSrc> link, TSrc source)
    Parameters
    Type Name Description
    Link<TVal, TSrc> link

    Link

    TSrc source

    Link source

    Returns
    Type Description
    Link<TVal, TSrc>

    Updated link

    | Improve this Doc View Source

    Implicit(Link<TVal, TSrc> to TVal)

    Implicitly returns dictionary value

    Declaration
    public static implicit operator TVal(Link<TVal, TSrc> val)
    Parameters
    Type Name Description
    Link<TVal, TSrc> val

    Dictionary property

    Returns
    Type Description
    TVal

    Value

    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

    LinkPropertyAttribute
    Value
    Source
    Addition(Link<TVal, TSrc>, TSrc)
    Implicit(Link<TVal, TSrc> to TVal)
    GetDictionaryValue<T>(Expression<Func<T, Boolean>>, String, ISecuritySession, Variable[])
    IsNull()
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX