13.07.2015 Views

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

356<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>3. Rename _Default to DoLinq in the C# script, and have it rename the <strong>ASP</strong>.<strong>NET</strong>inherit (inherits DoLinq).4. Right-click the App_Data folder and select Add New Item.5. Under Templates select SQL Server Database, and in the Name window changethe default name to ServiceReg.mdf as shown in Figure 14-1. Click the Add buttonwhen finished.6. Open the Server Explorer and you should see ServiceReg.mdf among the databases.Right-click the Tables folder icon, and select Add New Table as shown inFigure 14-2.7. When the table window opens, add the information shown in Figure 14-3. RegID isa primary key field and an identity field, so values enter automatically.8. Save the table using the name RegClients. You will see the table listed in the Tablesfolder of the ServiceReg.mdf database in the Server Explorer.Figure 14-1 Selecting SQL database

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!