EntityKey クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
エンティティの識別子。
[System.Diagnostics.DebuggerDisplay("{ConcatKeyValue()}")]
[System.Runtime.Serialization.DataContract(IsReference=true)]
[System.Serializable]
public sealed class EntityKey : IEquatable<System.Data.Entity.Core.EntityKey>
type EntityKey = class
interface IEquatable<EntityKey>
Public NotInheritable Class EntityKey
Implements IEquatable(Of EntityKey)
- 継承
-
EntityKey
- 属性
- 実装
コンストラクター
| Name | 説明 |
|---|---|
| EntityKey() |
EntityKey クラスの新しいインスタンスを初期化します。 |
| EntityKey(String, IEnumerable<EntityKeyMember>) |
エンティティ セット名とEntityKey オブジェクトのIEnumerable<T> コレクションを使用して、EntityKeyMember クラスの新しいインスタンスを初期化します。 |
| EntityKey(String, IEnumerable<KeyValuePair<String,Object>>) |
エンティティ セット名とジェネリック EntityKey コレクションを使用して、KeyValuePair クラスの新しいインスタンスを初期化します。 |
| EntityKey(String, String, Object) |
エンティティ セット名と特定のエンティティ キー ペアを使用して、 EntityKey クラスの新しいインスタンスを初期化します。 |
プロパティ
| Name | 説明 |
|---|---|
| EntityContainerName |
エンティティ コンテナーの名前を取得または設定します。 |
| EntityKeyValues |
この EntityKeyに関連付けられているキー値を取得または設定します。 |
| EntityNotValidKey |
失敗した TREAT の結果のエンティティを識別するシングルトン EntityKey を取得します。 |
| EntitySetName |
エンティティ セットの名前を取得または設定します。 |
| IsTemporary |
EntityKeyが一時的であるかどうかを示す値を取得します。 |
| NoEntitySetKey |
読み取り専用エンティティが識別されるシングルトン EntityKey を取得します。 |
メソッド
| Name | 説明 |
|---|---|
| Equals(EntityKey) |
このインスタンスが指定した EntityKey と等しいかどうかを示す値を返します。 |
| Equals(Object) |
このインスタンスが指定されたオブジェクトと等しいかどうかを示す値を返します。 |
| GetEntitySet(MetadataWorkspace) |
指定されたメタデータ ワークスペースから、このエンティティ キーのエンティティ セットを取得します。 |
| GetHashCode() |
現在の EntityKey オブジェクトのハッシュ関数として機能します。 GetHashCode() は、ハッシュ アルゴリズムやハッシュ テーブルなどのデータ構造に適しています。 |
| OnDeserialized(StreamingContext) |
EntityKeyを逆シリアル化するために使用されるヘルパー メソッド。 |
| OnDeserializing(StreamingContext) |
EntityKeyを逆シリアル化するために使用されるヘルパー メソッド。 |
演算子
| Name | 説明 |
|---|---|
| Equality(EntityKey, EntityKey) |
2 つの EntityKey オブジェクトを比較します。 |
| Inequality(EntityKey, EntityKey) |
2 つの EntityKey オブジェクトを比較します。 |