LinqDataSourceView.ContextTypeName プロパティ

定義

TableName プロパティで指定されたフィールドまたはプロパティを持つデータ コンテキスト クラスの名前を取得または設定します。

public:
 virtual property System::String ^ ContextTypeName { System::String ^ get(); void set(System::String ^ value); };
public virtual string ContextTypeName { get; set; }
public override string ContextTypeName { get; set; }
member this.ContextTypeName : string with get, set
Public Overridable Property ContextTypeName As String
Public Overrides Property ContextTypeName As String

プロパティ値

データ コンテキスト クラスの名前。

注釈

コントロールの LinqDataSource プロパティをContextTypeName設定すると、その値はコントロールの プロパティにも設定ContextTypeNameされますLinqDataSourceView。 詳細については、 オブジェクトを LinqDataSource.ContextTypeName 参照してください。

このプロパティは、イベント中にクエリ データが提供されない限り、またはイベント中 Selecting にコンテキストが手動で作成されない限り、指定する ContextCreating 必要があります。

適用対象

こちらもご覧ください