EntitySet.Create メソッド

定義

EntitySet オブジェクトを構築するためのファクトリ メソッド。

public static System.Data.Entity.Core.Metadata.Edm.EntitySet Create (string name, string schema, string table, string definingQuery, System.Data.Entity.Core.Metadata.Edm.EntityType entityType, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> metadataProperties);
static member Create : string * string * string * string * System.Data.Entity.Core.Metadata.Edm.EntityType * seq<System.Data.Entity.Core.Metadata.Edm.MetadataProperty> -> System.Data.Entity.Core.Metadata.Edm.EntitySet

パラメーター

name
String

EntitySet の名前。

schema
String

db スキーマ。 null を使用できます。

table
String

db テーブル。 null を使用できます。

definingQuery
String

この EntitySet のデータを取得するために使用するプロバイダー固有のクエリ。 null を使用できます。

entityType
EntityType

このエンティティ セット型に含まれるエンティティのエンティティ型。

metadataProperties
IEnumerable<MetadataProperty>

新しく作成された EntitySet に追加されるメタデータ プロパティ。 null を使用できます。

戻り値

EntitySet オブジェクト。

例外

name 引数が null または空の文字列の場合にスローされます。

注釈

新しく作成された EntitySet は読み取り専用です。

適用対象