LINQtoSQL101_03_01 - Declarative ASP.NET Databinding with the LinqDataSource
Tags:
VB
, Experienced
, 2008
, LINQ
In this video we'll look at the LinqDatSource in ASP.NET that allows us to declaratively bind ASP.NET controls on a page to LINQ enabled data model.
You might already be familiar with the SqlDataSource or the ObjectDataSource ... the LinqDataSource is just like that, but uses the Entity model as it's data source.
One of the benefits of using the <asp:linqdatasource> control is that it leverages the flexibility that the LINQ entity model provides. You don't need to define custom query/insert/update/delete methods for the datasource to call - instead you can point the <asp:linqdatasource> control at your data model, identify what entity table you want it to work against, and then bind any ASP.NET UI control against the <asp:linqdatasource> and have them work with it.
So, we'll demonstrate how to configure the Linq data source, then we'll work with the GridView control to display records from the Products table in our AdventureWorks database ... and I imagine you're already familiar with simple features of the GridView, including how to adding column sorting, paging, and in place editing ... and near the end of the video I'll modify the grid to use the related ProductCategories table to display the category name, and show a drop down list of category names while in edit mode.
Downloads:
Sign up today to access downloads.
 |
LINQtoSQL101_03_01 - Declarative ASP.NET Databinding with the LinqDataSource
Duration:
15 Minutes, 30 Seconds
Size:
25.63M
Recorded Using:
Visual Studio 2008 (all versions)
|
|
Get Free Videos via Email
Sign up for our newsletter and receive links to free videos and more.
We don't rent/sell/or commit other evil deeds with your email address. See our
Privacy Policy.
|