Class ProcedureAttribute
Data object SQL procedure / function attribute
Inherited Members
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 SourceProcedureAttribute(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 SourceAlias
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
| Improve this Doc View SourceName
SQL stored procedure / function name
WARNING! Specify full qualified name of procedure!
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
ProcedureType
Stored procedure type
Declaration
public ProcedureType ProcedureType { get; }
Property Value
Type | Description |
---|---|
ProcedureType |
See Also
| Improve this Doc View SourceType
Data source type
Declaration
public override DataSourceType Type { get; }
Property Value
Type | Description |
---|---|
DataSourceType | Procedure |
Overrides
Extension Methods
SqlBlockExtensions.SetExpression<TTag, TResult>(TTag, Expression<Func<IBlockQueryAdapter, TResult>>)