aspnet-devexpress-dot-data-dot-linq-dot-linqservermodedatasource-d2648728.md
Gets or sets the type name of objects retrieved from a data source.
Namespace : DevExpress.Data.Linq
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public string ContextTypeName { get; set; }
<DefaultValue("")>
Public Property ContextTypeName As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String value that specifies the type name of objects retrieved from a data source.
|
<dx:ASPxGridView ID="ASPxGridView1" DataSourceID="LinqServerModeDataSource1" >
...
</dx:ASPxGridView>
<dx:LinqServerModeDataSource ID="LinqServerModeDataSource1" runat="server"
ContextTypeName="NorthwindNestedFields.DataClasses1DataContext" TableName="Orders" />
namespace NorthwindNestedFields
{
[System.Data.Linq.Mapping.DatabaseAttribute(Name="Northwind")]
public partial class DataClasses1DataContext : System.Data.Linq.DataContext {
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
...
public DataClasses1DataContext(string connection) :
base(connection, mappingSource)
{
OnCreated();
}
See Also
LinqServerModeDataSource Class