Show / Hide Table of Contents

    Interface IDataQuery

    Read only data source basic interface

    Inherited Members
    IQueryable.ElementType
    IQueryable.Expression
    IQueryable.Provider
    IEnumerable.GetEnumerator()
    IDisposable.Dispose()
    Namespace: XData
    Assembly: XData.docfx.dll
    Syntax
    public interface IDataQuery : IOrderedQueryable, IQueryable, IEnumerable, IDisposable

    Properties

    | Improve this Doc View Source

    Alias

    Data repository alias

    Declaration
    string Alias { get; }
    Property Value
    Type Description
    String
    Remarks

    Default value is data object type name

    | Improve this Doc View Source

    Context

    Data context

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

    Keys

    Data query/repository key properties

    Declaration
    string[] Keys { get; }
    Property Value
    Type Description
    String[]
    | Improve this Doc View Source

    Layer

    Data repository layer

    Declaration
    Guid Layer { get; }
    Property Value
    Type Description
    Guid
    Remarks

    Sharing same layer the data object repositories can interact automatically as parent/child (see ExternalLinkAttribute)

    Repositories on different layers but same data object are independent for each other

    Repositories on same layer based on same data object is the same repository

    | Improve this Doc View Source

    Token

    Cancellation token

    Declaration
    CancellationToken Token { get; }
    Property Value
    Type Description
    CancellationToken
    | Improve this Doc View Source

    Variables

    Data query/repository/call result variables

    Declaration
    VariableIndexer Variables { get; }
    Property Value
    Type Description
    VariableIndexer
    Remarks

    Variable values can be used to set the filter values (query/repository)

    Variable values can be used in custom logic (repository)

    Variables is stored in query/repository/call result instance

    Examples

    var rep = dataScope.GetRepository<Customer>(variables: new []{"OurCode", "SELF"});

    var newInvoice = dataScope.GetRepository<Invoice>().New();

    newInvoice.CustomerFrom += rep.First(x => x.Code.CompareVariable(FilterOperation.Equal, "SELF"));

    See Also
    Variable
    GetRepository<T>(String, ISecuritySession, Variable[])
    XData.DataObjectExtensions.CompareVariable(XData.IDataQueryInternal,System.Object,XData.FilterOperation,System.String)

    Extension Methods

    DataObjectExtensions.GetParameter<T>(IDataQuery, String)
    DataObjectExtensions.GetResultSet<TRes>(IDataQuery, String)
    DataObjectExtensions.GetResultSet<TRes>(IDataQuery, Expression<Func<IEnumerable<TRes>>>)
    SerializationExtensions.ToXml<T>(T)
    AsyncExtensions.GetParameterAsync<T>(IDataQuery, String)
    AsyncExtensions.GetResultSetAsync<TRes>(IDataQuery, String)
    AsyncExtensions.GetResultSetAsync<TRes>(IDataQuery, Expression<Func<IEnumerable<TRes>>>)
    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