<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test_linq_ds.aspx.cs" Inherits="test_linq_ds" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>LinqDataSource</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <b>Une source de données LINQ basée sur une classe de type DAO</b>
        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
            DataSourceID="LinqDataSource1" Height="50px" Width="125px" AllowPaging="true">
            <Fields>
                <asp:BoundField DataField="idPersonne" HeaderText="idPersonne" 
                    SortExpression="idPersonne" />
                <asp:BoundField DataField="prenom" HeaderText="prenom" 
                    SortExpression="prenom" />
                <asp:BoundField DataField="nom" HeaderText="nom" SortExpression="nom" />
            </Fields>
        </asp:DetailsView>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="PersonneDAO" EntityTypeName="" TableName="Personnes">
        </asp:LinqDataSource>
    
    </div>
    </form>
</body>
</html>
