DataSource Query Extender in Dynamic Data Preview 4

06/21/2009

One of the new big features in ASP.NET 4 is the QueryExtender control. This control allows very simple filtering for data source controls for common operations that developers want to do like search for a string across columns, check if the value of a column is in a certain range and other operations. These samples also show the DomainDataSource which is a new ASP.NET data source control that will be used to access .NET RIA Service Domain Services. See the .NET RIA Service section at the bottom of the document for how to download and install the tooling support for Domain Services.

· DomainDataSource

· Basic. This show typical ASP.NET data binding using the DomainServiceDataSource.

· With QueryBlock. This demonstrates all the new filters that are possibly with the QueryExtender which include search, range, control and custom.

· Validation and Authentication. This demonstrates support for validation and user authentication in Domain Services and that the DomainDataSource supports these scenarios.

· LinqDataSource

· With Query Block. This demonstrates all the new filters that are possibly with the QueryExtender which include search, range, control and custom.

ADO.NET DataServices

This project contains a sample DataServiceLinqDataSource which is an ASP.NET data source for accessing ADO.NET Data Services from web pages.

· Microsoft.Data.Services.WebControls. This project contains a standalone ASP.NET datasource that can be used to access ADO.NET Data Services. It also contains a data model provider for using ADO.NET Data Services from Dynamic Data.

· DataServiceClient. This is a Dynamic Data application that scaffolds an ADO.NET Data Service.

DataServiceServer. This is a sample ADO.NET Data Service used as the server for the DataServiceClient sample.

Dynamic Data Futures

This project contains some samples of features and techniques that will not be shipping in .NET 4 but may show up in future releases of Dynamic Data.

· Set Metadata at Runtime. Normally metadata that Dynamic Data consumes is created at compile time using attributes. This sample shows how to add metadata to a data model at runtime.

· Image FieldTemplates. This field template sample shows how to take columns in the database that contain binary images and allow them to be displayed and edited using the DbImage field template. It also supports columns that contain URL’s to images via the FileImage field template. Both of these can be applied to columns using the UIHint attribute.

· Pretty URL’s. This demonstrates how to build routes that contain one or more primary keys and format them into a pretty urls. For example: /Categories/Details?CategoryID=3 to show as /Categories/Details/3

· Project Templates

These are starter projects that can be used to build brand new applications that have support for all the new features in the Preview. To start just copy the directory that supports the data model that you are using to a working folder, create the data model and register it in Global.asax.

· DomainServiceProject. This is for projects using the .NET RIA Domain Service for the data access layer. See the section below on .NET RIA Services for information on how to get tooling support for creating data access layers.

· EntityFrameworkProject. This is for projects using Entity Framework models for the data access layer.

· LinqToSqlProject. This is for projects using Linq to SQL for the data access layer.

Posted in: C# and .NET| Tags: CTP Dynamic Data DataSource Query Query Extender DataServices Feature

Hot Posts

Latest posts

Tags

Others

Sponsors

asp.net interview questions