Class ParameterAttribute
SQL stored procedure/function parameter
Inherited Members
Namespace: XData.Mapping
Assembly: XData.docfx.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ParameterAttribute : Attribute
Constructors
| Improve this Doc View SourceParameterAttribute(String, Int32, String, Type, DbType)
Parameter attribute constructor
Declaration
public ParameterAttribute(string alias, int order, string binding, Type type, DbType dbType)
Parameters
Type | Name | Description |
---|---|---|
String | alias | SQL stored procedure/function alias |
Int32 | order | Parameter order |
String | binding | Parameter to repository variable binding |
Type | type | Parameter mapped type |
DbType | dbType | Parameter database type |
Properties
| Improve this Doc View SourceDefaultType
Parameter default value type
Declaration
public DefaultType DefaultType { get; set; }
Property Value
Type | Description |
---|---|
DefaultType |
DefaultValue
Parameter default value
Declaration
public object DefaultValue { get; set; }
Property Value
Type | Description |
---|---|
Object |
Direction
Parameter direction
Declaration
public ParameterDirection Direction { get; set; }
Property Value
Type | Description |
---|---|
ParameterDirection |
IsArray
User defined type (UDT) collection is VARARRAY
Declaration
public bool IsArray { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Name
Parameter name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
NativeSqlType
Native SQL type name
Declaration
public string NativeSqlType { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Used to specify native SQL column type when conflicted with default type mapping
WARNING! May be not supported by database adapter!
Scale
Parameter data scale (if applicable)
Declaration
public int Scale { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Size
Parameter data size (if applicable)
Declaration
public int Size { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
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
| Improve this Doc View SourceUdtElementTypeName
User defined type (UDT) element type name
Declaration
public string UdtElementTypeName { get; set; }
Property Value
Type | Description |
---|---|
String |
UdtTypeName
User defined type (UDT) name
Declaration
public string UdtTypeName { get; set; }
Property Value
Type | Description |
---|---|
String |