ナビゲーション プロパティに対してシリアル化されるアソシエーションの注釈を設定します。
名前空間: Microsoft.Data.Edm.Csdl
アセンブリ: Microsoft.Data.Edm (Microsoft.Data.Edm.dll)
構文
'宣言
<ExtensionAttribute> _
Public Shared Sub SetAssociationAnnotations ( _
model As IEdmModel, _
property As IEdmNavigationProperty, _
annotations As IEnumerable(Of IEdmDirectValueAnnotation), _
end1Annotations As IEnumerable(Of IEdmDirectValueAnnotation), _
end2Annotations As IEnumerable(Of IEdmDirectValueAnnotation), _
constraintAnnotations As IEnumerable(Of IEdmDirectValueAnnotation) _
)
'使用
Dim model As IEdmModel
Dim property As IEdmNavigationProperty
Dim annotations As IEnumerable(Of IEdmDirectValueAnnotation)
Dim end1Annotations As IEnumerable(Of IEdmDirectValueAnnotation)
Dim end2Annotations As IEnumerable(Of IEdmDirectValueAnnotation)
Dim constraintAnnotations As IEnumerable(Of IEdmDirectValueAnnotation)
model.SetAssociationAnnotations(property, _
annotations, end1Annotations, end2Annotations, _
constraintAnnotations)
public static void SetAssociationAnnotations(
this IEdmModel model,
IEdmNavigationProperty property,
IEnumerable<IEdmDirectValueAnnotation> annotations,
IEnumerable<IEdmDirectValueAnnotation> end1Annotations,
IEnumerable<IEdmDirectValueAnnotation> end2Annotations,
IEnumerable<IEdmDirectValueAnnotation> constraintAnnotations
)
[ExtensionAttribute]
public:
static void SetAssociationAnnotations(
IEdmModel^ model,
IEdmNavigationProperty^ property,
IEnumerable<IEdmDirectValueAnnotation^>^ annotations,
IEnumerable<IEdmDirectValueAnnotation^>^ end1Annotations,
IEnumerable<IEdmDirectValueAnnotation^>^ end2Annotations,
IEnumerable<IEdmDirectValueAnnotation^>^ constraintAnnotations
)
static member SetAssociationAnnotations :
model:IEdmModel *
property:IEdmNavigationProperty *
annotations:IEnumerable<IEdmDirectValueAnnotation> *
end1Annotations:IEnumerable<IEdmDirectValueAnnotation> *
end2Annotations:IEnumerable<IEdmDirectValueAnnotation> *
constraintAnnotations:IEnumerable<IEdmDirectValueAnnotation> -> unit
public static function SetAssociationAnnotations(
model : IEdmModel,
property : IEdmNavigationProperty,
annotations : IEnumerable<IEdmDirectValueAnnotation>,
end1Annotations : IEnumerable<IEdmDirectValueAnnotation>,
end2Annotations : IEnumerable<IEdmDirectValueAnnotation>,
constraintAnnotations : IEnumerable<IEdmDirectValueAnnotation>
)
パラメーター
- model
型: Microsoft.Data.Edm.IEdmModel
ナビゲーション プロパティを含むモデル。
- property
型: Microsoft.Data.Edm.IEdmNavigationProperty
ナビゲーション プロパティ。
- annotations
型: System.Collections.Generic.IEnumerable<IEdmDirectValueAnnotation>
アソシエーションの注釈。
- end1Annotations
型: System.Collections.Generic.IEnumerable<IEdmDirectValueAnnotation>
アソシエーション End 1 の注釈。
- end2Annotations
型: System.Collections.Generic.IEnumerable<IEdmDirectValueAnnotation>
アソシエーション End 2 の注釈。
- constraintAnnotations
型: System.Collections.Generic.IEnumerable<IEdmDirectValueAnnotation>
参照制約の注釈。
使用に関するメモ
Visual Basic および C# では、このメソッドを型 IEdmModel の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。このメソッドを呼び出すためにインスタンス メソッドの構文を使う場合は、最初のパラメーターを省略してください。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.103)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.103)」を参照してください。