エンティティ セットのナビゲーション ターゲットに対してシリアル化されるアソシエーション セットの注釈を設定します。
名前空間: Microsoft.Data.Edm.Csdl
アセンブリ: Microsoft.Data.Edm (Microsoft.Data.Edm.dll)
構文
'宣言
<ExtensionAttribute> _
Public Shared Sub SetAssociationSetAnnotations ( _
model As IEdmModel, _
entitySet As IEdmEntitySet, _
property As IEdmNavigationProperty, _
annotations As IEnumerable(Of IEdmDirectValueAnnotation), _
end1Annotations As IEnumerable(Of IEdmDirectValueAnnotation), _
end2Annotations As IEnumerable(Of IEdmDirectValueAnnotation) _
)
'使用
Dim model As IEdmModel
Dim entitySet As IEdmEntitySet
Dim property As IEdmNavigationProperty
Dim annotations As IEnumerable(Of IEdmDirectValueAnnotation)
Dim end1Annotations As IEnumerable(Of IEdmDirectValueAnnotation)
Dim end2Annotations As IEnumerable(Of IEdmDirectValueAnnotation)
model.SetAssociationSetAnnotations(entitySet, _
property, annotations, end1Annotations, _
end2Annotations)
public static void SetAssociationSetAnnotations(
this IEdmModel model,
IEdmEntitySet entitySet,
IEdmNavigationProperty property,
IEnumerable<IEdmDirectValueAnnotation> annotations,
IEnumerable<IEdmDirectValueAnnotation> end1Annotations,
IEnumerable<IEdmDirectValueAnnotation> end2Annotations
)
[ExtensionAttribute]
public:
static void SetAssociationSetAnnotations(
IEdmModel^ model,
IEdmEntitySet^ entitySet,
IEdmNavigationProperty^ property,
IEnumerable<IEdmDirectValueAnnotation^>^ annotations,
IEnumerable<IEdmDirectValueAnnotation^>^ end1Annotations,
IEnumerable<IEdmDirectValueAnnotation^>^ end2Annotations
)
static member SetAssociationSetAnnotations :
model:IEdmModel *
entitySet:IEdmEntitySet *
property:IEdmNavigationProperty *
annotations:IEnumerable<IEdmDirectValueAnnotation> *
end1Annotations:IEnumerable<IEdmDirectValueAnnotation> *
end2Annotations:IEnumerable<IEdmDirectValueAnnotation> -> unit
public static function SetAssociationSetAnnotations(
model : IEdmModel,
entitySet : IEdmEntitySet,
property : IEdmNavigationProperty,
annotations : IEnumerable<IEdmDirectValueAnnotation>,
end1Annotations : IEnumerable<IEdmDirectValueAnnotation>,
end2Annotations : IEnumerable<IEdmDirectValueAnnotation>
)
パラメーター
- model
型: Microsoft.Data.Edm.IEdmModel
エンティティ セットを含むモデル。
- entitySet
型: Microsoft.Data.Edm.IEdmEntitySet
エンティティ セット。
- 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 の注釈。
使用に関するメモ
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)」を参照してください。