Share via


Parameter 要素 (SSDL)

ストア スキーマ定義言語 (SSDL) の Parameter 要素は Function 要素の子であり、データベース内のストアド プロシージャのパラメーターを指定します。

The Parameter element can have the following child elements (in the order listed):

適用可能な属性

The table below describes the attributes that can be applied to the Parameter element.

属性名 必須 Value

Name

有効

パラメーターの名前。

Type

有効

パラメーターの型。

Mode

いいえ

パラメーターが入力パラメーター、出力パラメーター、または入力/出力パラメーターのいずれであるかに応じて、InOut、または InOut です。

MaxLength

いいえ

パラメーターの最大長。

Precision

いいえ

パラメーターの有効桁数。

Scale

いいえ

パラメーターの小数点以下桁数。

Ee705451.note(ja-jp,VS.100).gif注 :
Parameter 要素には、任意の数の annotation 属性 (カスタム XML 属性) を適用できます。However, custom attributes may not belong to any XML namespace that is reserved for SSDL.カスタム属性の完全修飾名は一意である必要があります。

次の例は、入力パラメーターを指定する 2 つの Parameter 要素を持つ Function 要素を示しています。

<Function Name="UpdateOrderQuantity" 
          Aggregate="false" 
          BuiltIn="false" 
          NiladicFunction="false" 
          IsComposable="false" 
          ParameterTypeSemantics="AllowImplicitConversion" 
          Schema="dbo">
  <Parameter Name="orderId" Type="int" Mode="In" />
  <Parameter Name="newQuantity" Type="int" Mode="In" />
</Function>

参照

概念

エンティティ フレームワークの概要
SSDL 仕様
CommandText 要素 (SSDL)

その他のリソース

CSDL、SSDL、および MSL 仕様
ADO.NET Entity Data Model Tools