Databases Reference
In-Depth Information
FIGURE 1.6 Northwind data model.
Entity Framework allows you to write strongly typed database queries using C# and Visual
Basic code as opposed to traditional T-SQL statements embedded in string constants or
literals. Consider an ASP.NET page in Listing 1.1 that displays database records in a
GridView control.
LISTING 1.1 Entity Framework Sample (Markup)
<%@ Page Language=”C#”
MasterPageFile=”~/Site.master” CodeBehind=”SamplePage.aspx.cs”
Inherits=”WebApplication.Samples.Ch01.AdoNet.SamplePage” %>
<asp:Content ContentPlaceHolderID=”main” runat=”server”>
<asp:GridView ID=”gridView” runat=”server” />
</asp:Content>
Aside from relying on Site.master , the default master page provided by the Dynamic
Data project template, this page is very simple and has only one GridView control.
 
Search WWH ::




Custom Search