Show / Hide Table of Contents

    Class ProcedureAttribute

    Data object SQL procedure / function attribute

    Inheritance
    Object
    Attribute
    DataSourceAttribute
    ProcedureAttribute
    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.Class)]
    public sealed class ProcedureAttribute : DataSourceAttribute
    Examples
        Procedure("C", "dbo.GetCustomers", ProcedureType.Function)

    Constructors

    | Improve this Doc View Source

    ProcedureAttribute(String, String, ProcedureType)

    Data object SQL procedure / function attribute

    Declaration
    public ProcedureAttribute(string alias, string name, ProcedureType type)
    Parameters
    Type Name Description
    String alias

    Procedure / function alias

    String name

    Procedure / function name

    ProcedureType type

    Stored procedure type

    Exceptions
    Type Condition
    XDataRuntimeException

    Procedure alias cannot be null or empty string

    XDataRuntimeException

    Procedure name cannot be null or empty string

    Properties

    | Improve this Doc View Source

    Alias

    Procedure / function alias

    Set procedure alias as BaseSource

    Hint: Alias used with table-valued functions as from-structure alias

    Declaration
    public override string Alias { get; protected set; }
    Property Value
    Type Description
    String
    Overrides
    DataSourceAttribute.Alias
    | Improve this Doc View Source

    Name

    SQL stored procedure / function name

    WARNING! Specify full qualified name of procedure!

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

    ProcedureType

    Stored procedure type

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

    Type

    Data source type

    Declaration
    public override DataSourceType Type { get; }
    Property Value
    Type Description
    DataSourceType Procedure
    Overrides
    DataSourceAttribute.Type

    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

    DataTableAttribute
    InnerViewAttribute
    SubqueryAttribute
    ParameterAttribute
    ResultSetAttribute
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX