Uredi

Deli z drugimi prek


LinqDataSourceView.ContextTypeName Property

Definition

Gets or sets the name of the data context class that contains the field or property specified in the TableName property.

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

Property Value

The name of the data context class.

Remarks

When you set the ContextTypeName property of the LinqDataSource control, that value is also set for the ContextTypeName property of the LinqDataSourceView control. For more information, see the LinqDataSource.ContextTypeName object.

This property must be specified unless the query data is provided during the Selecting event, or unless the context is created manually during the ContextCreating event.

Applies to

See also