Practical Database Programming With Visual C#.NET
|
|
- Christopher Benson
- 5 years ago
- Views:
Transcription
1 Practical Database Programming With Visual C#.NET Ying Bai Department of Computer Science and Engineering Johnson C. Smith University Charlotte, North Carolina IEEE PRESS A John Wiley & Sons, Inc., Publication
2
3 Practical Database Programming With Visual C#.NET
4 IEEE Press 445 Hoes Lane Piscataway, NJ IEEE Press Editorial Board Lajos Hanzo, Editor in Chief R. Abari T. Chen B. M. Hammerli J. Anderson T. G. Croda O. Malik S. Basu M. El-Hawary S. Nahavandi A. Chatterjee S. Farshchi W. Reeve Kenneth Moore, Director of IEEE Book and Information Services (BIS)
5 Practical Database Programming With Visual C#.NET Ying Bai Department of Computer Science and Engineering Johnson C. Smith University Charlotte, North Carolina IEEE PRESS A John Wiley & Sons, Inc., Publication
6 Copyright 2010 by the Institute of Electrical and Electronics Engineers, Inc. Published by John Wiley & Sons, Inc., Hoboken, New Jersey. All rights reserved. Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Section 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, (978) , fax (978) , or on the web at Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) , fax (201) , or online at Limit of Liability/Disclaimer of Warranty: While the publisher and author have used their best efforts in preparing this book, they make no representations or warranties with respect to the accuracy or completeness of the contents of this book and specifically disclaim any implied warranties of merchantability or fitness for a particular purpose. No warranty may be created or extended by sales representatives or written sales materials. The advice and strategies contained herein may not be suitable for your situation. You should consult with a professional where appropriate. Neither the publisher nor author shall be liable for any loss of profit or any other commercial damages, including but not limited to special, incidental, consequential, or other damages. For general information on our other products and services or for technical support, please contact our Customer Care Department within the United States at (800) , outside the United States at (317) or fax (317) Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic formats. For more information about Wiley products, visit our web site at www. wiley.com. Library of Congress Cataloging-in-Publication Data: Bai, Ying, 1956 Practical database programming with Visual C#.NET / Ying Bai. p. cm. Includes index. ISBN (cloth) 1. Microsoft Visual C#.NET. 2. C# (Computer program language) 3. Database design. 4. Microsoft.NET. I. Title. QA76.73.C154B '882 dc Printed in the United States of America
7 To my wife, Yan Wang, and my daughter, Xue Bai
8
9 Contents Preface xxiii Acknowledgment xxv 1 Introduction 1 Outstanding Features of the Book 2 Target Audience 2 Topics Covered 3 Organization of the Book and How to Use It 5 How to Use the Source Code and Sample Databases 6 Instructor and Customer Support 7 Homework Solutions 8 2 Introduction to Databases What Are Databases and Database Programs? File Processing System Integrated Databases Develop a Database Sample Database Relational Data Model Entity-Relationship Model (ER) Identifying Keys Primary Key and Entity Integrity Candidate Key Foreign Keys and Referential Integrity Define Relationships Connectivity ER Notation Data Normalization First Normal Form (1NF) Second Normal Form (2NF) Third Normal Form (3NF) Database Components in Some Popular Databases Microsoft Access Databases 28 vii
10 viii Contents Database File Tables Queries SQL Server Databases Data Files Tables Views Stored Procedures Keys and Relationships Indexes Transaction Log Files Oracle Databases Data Files Tables Views Stored Procedures Indexes Initialization Parameter Files Control Files Redo Log Files Password Files Create Microsoft Access Sample Database Create LogIn Table Create Faculty Table Create Other Tables Create Relationships Among Tables Create Microsoft SQL Server 2005 Sample Database Create LogIn Table Create Faculty Table Create Other Tables Create Relationships Among Tables Create Relationship Between LogIn and Faculty Tables Create Relationship Between LogIn and Student Tables Create Relationship Between Faculty and Course Tables Create Relationship Between Student and StudentCourse Tables Create Relationship Between Course and StudentCourse Tables Create Oracle 10g XE Sample Database Create Oracle User Database Add New Data Tables into Oracle User Database Create LogIn Table Create Faculty Table Create Other Tables Create Constraints Between Tables Create Constraints Between LogIn and Faculty Tables Create Constraints Between LogIn and Student Tables 81
11 Create Constraints Between Course and Faculty Tables Create Constraints Between StudentCourse and Student Tables Create Constraints Between StudentCourse and Course Tables Chapter Summary 86 Homework 87 Contents ix 3 Introduction to ADO.NET ADO and ADO.NET Overview of ADO.NET Architecture of ADO.NET Components of ADO.NET Data Provider ODBC Data Provider OLEDB Data Provider SQL Server Data Provider Oracle Data Provider Connection Class Open() Method of Connection Class Close() Method of Connection Class Dispose() Method of Connection Class Command and Parameter Classes Properties of Command Class Constructors and Properties of Parameter Class Parameter Mapping Methods of ParameterCollection Class Constructor of Command Class Methods of Command Class DataAdapter Class Constructor of DataAdapter Class Properties of DataAdapter Class Methods of DataAdapter Class Events of DataAdapter Class DataReader Class DataSet Component DataSet Constructor DataSet Properties DataSet Methods DataSet Events DataTable Component DataTable Constructor DataTable Properties DataTable Methods DataTable Events ADO.NET 3.5 Entity Framework 127
12 x Contents ADO.NET 3.5 Entity Data Model Using ADO.NET 3.5 Entity Data Model Wizard Chapter Summary 142 Homework Introduction to Language-Integrated Query (LINQ) Overview of Language-Integrated Query Some Special Interfaces Used in LINQ IEnumerable and IEnumerable<T> Interfaces IQueryable and IQueryable<T> Interfaces Standard Query Operators Deferred Standard Query Operators Nondeferred Standard Query Operators Introduction to LINQ Query Architecture and Components of LINQ Overview of LINQ to Objects Overview of LINQ to DataSet Overview of LINQ to SQL Overview of LINQ to Entities Overview of LINQ to XML LINQ to Objects LINQ and ArrayList LINQ and Strings Query a String to Determine Number of Numeric Digits Sort Lines of Structured Text by Any Field in Line LINQ and File Directories Query Contents of Files in a Folder LINQ and Reflection LINQ to DataSet Operations to DataSet Objects Query Expression Syntax Method-Based Query Syntax Query the Single Table Query the Cross Tables Query Typed DataSet Operations to DataRow Objects Using Extension Methods Operations to DataTable Objects LINQ to SQL LINQ to SQL Entity Classes and DataContext Class LINQ to SQL Database Operations Data Selection Query Data Insertion Query Data Updating Query Data Deletion Query LINQ to SQL Implementations 206
13 Contents xi 4.7 LINQ to Entities Object Services Component ObjectContext Component ObjectQuery Component LINQ to Entities Flow of Execution Implementation of LINQ to Entities LINQ to XML LINQ to XML Class Hierarchy Manipulate XML Elements Creating XML from Scratch Insert XML Update XML Delete XML Manipulate XML Attributes Add XML Attributes Get XML Attributes Delete XML Attributes Query XML with LINQ to XML Standard Query Operators and XML XML Query Extensions Using Query Expressions with XML Using XPath and XSLT with LINQ to XML Mixing XML and Other Data Models C# 3.0 Language Enhancement for LINQ Lambda Expressions Extension Methods Implicitly Typed Local Variables Query Expressions Chapter Summary 228 Homework Data Selection Query with Visual C#.NET 235 PART I Data Query with Visual Studio Design Tools and Wizards Completed Sample Database Application Example Visual Studio.NET 2008 Design Tools and Wizards Data Design Tools in Toolbox Window DataSet DataGridView BindingSource BindingNavigator TableAdapter Data Design Wizards in Data Source Window Add New Data Source Data Source Configuration Wizard DataSet Designer 249
14 xii Contents 5.3 Build a Sample Database Project SelectWizard with SQL Server Database Application User Interfaces LogIn Form Selection Form Faculty Form Course Form Student Form Add and Utilize Visual Studio.NET Wizards and Design Tools Add and Configure a New Data Source Query and Display Data Using the DataGridView Control View Entire Table View Each Record or Specified Columns Use DataSet Designer to Edit the Structure of DataSet Bind Data to Associated Controls in LogIn Form Develop Codes to Query Data Using Fill() Method Use Return a Single Value to Query Data for LogIn Form Coding for Selection Form Bind Data to Associated Controls in Faculty Form Develop Codes to Query Data from Faculty Table Develop Codes to Query Data Using SQL SELECT Method Develop Codes to Query Data Using LINQ Method Display Pictures for Faculty Form Binding Data to Associated Controls in Course Form Develop Codes to Query Data for Course Form Query Data from the Course Table Using TableAdapter Method Query Data from the Course Table Using LINQ Method Build a Sample Database Project SelectWizardOracle with Oracle Database Create a New Visual C# Project SelectWizardOracle Select and Add Oracle Database 10g XE as Data Source 300 PART II Data Query with Runtime Objects Introduction to Runtime Objects Procedure of Building a Data-Driven Application Using Runtime Objects Query Data Using Runtime Objects to Microsoft Access 2007 Database Query Data Using Runtime Objects for LogIn Form Declare Runtime Objects Connect to Data Source with Runtime Objects Coding for Method 1: Using DataSet DataAdapter to Query Data Coding for Method 2: Using DataReader to Query Data 312
15 Contents xiii Coding for Selection Form Query Data Using Runtime Objects for Faculty Form Query Data Using Runtime Objects for Course Form Query Data Using Runtime Objects for Student Form Coding for Constructor of Student Form Coding for Student Select Button Click Method Query Data Using Runtime Objects to SQL Server Database Migrating from Access to SQL Server and Oracle Databases Query Data Using General Runtime Objects Query Data Using the General Runtime Objects for LogIn Form Coding for Selection Form Query Data Using General Runtime Objects for Faculty Form Query Data Using General Runtime Objects for Course Form Retrieve Data from Multiple Tables Using Joined Tables Method Query Data Using General Runtime Objects for Student Form Query Data Using Stored Procedures Query Data Using LINQ to SQL Technique Create Entity Classes and Connect DataContext to Database Query Data Using LINQ to SQL for LogIn Form Coding for Selection Form Query Data Using LINQ to SQL for Faculty Form Query Data Using Joined LINQ to SQL for Course Form Query Data Using LINQ to SQL Stored Procedures for Student Form Query Data Using Runtime Objects to Oracle Database Oracle Database 10g Express Edition Release Configure Oracle Database Connection String Query Data Using General Runtime Objects Query Data Using General Runtime Objects for LogIn Form Coding for Selection Form Query Data Using Runtime Objects for Faculty Form Query Data Using Runtime Objects for Course Form Stored Procedures in Oracle Database Environment Syntax of Creating a Stored Procedure in Oracle Syntax of Creating a Package in Oracle Create Faculty_Course Package for Course Form Query Data Using Oracle Package for Course Form Chapter Summary 432 Homework 434
16 xiv Contents 6 Data Inserting with Visual C#.NET 439 PART I Data Inserting with Visual Studio.NET Design Tools and Wizards Insert New Data into a Database Insert New Records into a Database Using TableAdapter.Insert Method Insert New Records into a Database Using TableAdapter.Update Method Insert Data into Microsoft Access Database Using Sample Project InsertWizard Create New Project Based on SampleWizards Project Application User Interfaces Create Insert Faculty Form Window Duplicate Visual C#.NET Projects with Installed DataSet Validate Data Before Data Insertion The.NET Framework Collection Classes Validate Data Using Generic Collection Initialization and Termination Coding for Data Insertion Build Insert Query Configure TableAdapter and Build Data Inserting Query Develop Codes to Insert Data Using TableAdapter.Insert Method Develop Codes to Insert Data Using TableAdapter.Update Method Validate Data After Data Insertion Modifications to Faculty Form Window Modifications to Insert Faculty Form Window Insert Data into SQL Server Database Using Sample Project SQLInsertWizard Modify Existing Project to Get New Data Insertion Project Create New Form Window to Insert Data for Course Form Trigger and Connect to Visual Studio Design Tools Project Initialization and Validate Data Before Data Insertion Configure TableAdapter and Build Data Insertion Query Develop Codes to Insert Data Using TableAdapter.Insert Method Develop Codes to Insert Data Using TableAdapter.Update Method Use Select Button in Course Form to Perform Data Validation Insert Data into Database Using Stored Procedures Create Stored Procedure Using TableAdapter Query Configuration Wizard 485
17 Modify Codes to Perform Data Insertion Using Stored Procedure Insert Data into Oracle Database Using Sample Project OracleInsertWizard 489 Contents xv PART II Data Insertion with Runtime Objects General Runtime Objects Method Insert Data into SQL Server Database Using Runtime Objects Method Add Inserting Data Form Window: Insert Faculty Form Modify Codes to Copied Project Startup Coding and Data Validation Before Data Insertion Insert Data into Faculty Table Validate Data After Data Insertion Modifications to Faculty Form Window Insert New Faculty Photo Modifications to Insert Faculty Form Window Insert Data into Microsoft Access Database Using Runtime Objects Modifications to Namespaces Remove SP Form and Student Form Modify Database Connection String Modify LogIn Query Strings Modify Faculty Query String Modifications to Other Forms Insert Data into Oracle Database Using Runtime Objects Add Oracle Reference and Oracle Namespace Modify Project Namespaces Modify Database Connection String Modify LogIn Query Strings Modify Faculty Query String Modifications to Other Forms Insert Data into Database Using LINQ Queries Insert Data into SQL Server Database Using LINQ to SQL Queries Insert Data into Database Using Stored Procedures Insert Data into SQL Server Database Using Stored Procedures Add an Inserting Data Form Window: Insert Course Form Develop Stored Procedures of SQL Server Database Develop Codes to Call Stored Procedures to Insert Data into Course Table Insert Data into Oracle Database Using Stored Procedures Develop Stored Procedures in Oracle Database Develop Codes to Call Stored Procedures to Insert Data into Course Table 543
18 xvi Contents 6.11 Chapter Summary 547 Homework Data Updating and Deleting with Visual C#.NET 551 PART I Data Updating and Deleting with Visual Studio.NET Design Tools and Wizards Update or Delete Data in Databases Updating and Deleting Data in Related Tables in DataSet Update or Delete Data in Database Using TableAdapter DBDirect Methods TableAdapter.Update and TableAdapter.Delete Update or Delete Data in Database Using TableAdapter.Update Method Update and Delete Data for Microsoft Access Database Create New Project Based on InsertWizard Project Application User Interfaces Modify Faculty Form Window Bind Data for All Textboxes of Faculty Form Window Validate Data Before Data Updating and Deleting Build Update and Delete Queries Build Data Updating Query Function Build Data Deleting Query Function Develop Codes to Update Data Using TableAdapter DBDirect Method Modifications of Coding Updating Coding Develop Codes to Update Data Using TableAdapter.Update Method Develop Codes to Delete Data Using TableAdapter DBDirect Method Develop Codes to Delete Data Using TableAdapter.Update Method Validate Data After Data Updating and Deleting Update and Delete Data for SQL Server Database Update and Delete Data for Oracle Database 572 PART II Data Updating and Deleting with Runtime Objects Runtime Objects Method Update and Delete Data for SQL Server Database Using Runtime Objects Update Data in Faculty Table for SQL Server Database Modify Faculty Form Window Modify Original Coding in Faculty Form Develop Codes to Update Data Validate Data Updating 579
19 Contents xvii Delete Data from Faculty Table for SQL Server Database Develop Codes to Delete Data Validate Data Updating and Deleting Update and Delete Data for Oracle Databases Using Runtime Objects Add Oracle Namespace Reference Modify Connection String and Query String for LogIn Form Modify Connection String in Constructor of LogIn Class Modify SELECT Query String in TabLogIn Button Click Method Modify SELECT Query String in ReadLogIn Button Click Method Modify Query Strings in Faculty Form Modify SELECT Query String for Select Button Click Method Modify UPDATE Query String for Update Button Click Method Modify DELETE Query String for Delete Button Click Method Modify Query Strings for Course Form Modify SELECT Query String for Select Button Click Method Modify SELECT Query String for CourseList Click Method Other Modifications Update and Delete Data in Database Using Stored Procedures Update and Delete Data in Access Database Using Stored Procedures Modify Existing Project Create Stored Procedures in Microsoft Access Database Call Stored Procedure to Update Faculty Information Call Stored Procedure to Delete Faculty Information Update and Delete Data in SQL Server Database Using Stored Procedures Modify Existing Project to Create New Project Develop Stored Procedure in SQL Server Database Call Stored Procedure to Perform Data Updating and Deleting Update and Delete Data in Oracle Database Using Stored Procedures Modify Existing Project to Create New Project Develop Stored Procedure in Oracle Database Call Stored Procedures to Perform Data Updating and Deleting 614
20 xviii Contents 7.9 Update and Delete Data in Databases Using LINQ to SQL Query Create New Object of DataContext Class Develop Codes for Select Button Click Method Develop Codes for Update Button Click Method Develop Codes for Delete Button Click Method Chapter Summary 621 Homework Accessing Data in ASP.NET What Is.NET Framework? What Is ASP.NET and ASP.NET 3.5? ASP.NET Web Application File Structure ASP.NET Execution Model What Really Happens When a Web Application Is Executed? Requirements to Test and Run a Web Project Develop ASP.NET Web Application to Select Data from SQL Server Databases Create the User Interface LogIn Form Develop Codes to Access and Select Data from Database Validate Data on Client Side Create Second User Interface Selection Page Develop Codes to Open Other Page Create Third User Interface Faculty Page Develop Codes to Select Desired Faculty Information Develop Codes for Page_Load Method Develop Codes for Select Button Method Develop Codes for Other Methods Create Fourth User Interface Course Page AutoPostBack Property of Listbox Control Develop Codes to Select Desired Course Information Coding for Course Page Loading and Ending Methods Coding for Select Button Click Method Coding for SelectedIndexChanged Method of Listbox Control Coding for Other User-Defined Methods Develop ASP.NET Web Application to Insert Data into SQL Server Databases Create New Web Page Insert.aspx Develop Codes to Perform Data Insertion Function Develop Codes for Page_Load and Back Button Click Methods Develop Codes for Insert Button Click Method Develop Codes for Other Methods Validate Data Insertion 668
21 Contents xix 8.5 Develop Web Applications to Update and Delete Data in SQL Server Databases Application User Interfaces Modify Coding for Faculty Page Develop Codes for Update Button Click Method Develop Codes for Delete Button Click Method Relationships Between Five Tables in Our Sample Database Data Deleting Order Sequence Use Cascade Deleting Option to Simplify Data Deleting Develop Codes to Perform Data Deleting Develop ASP.NET Web Applications with LINQ to SQL Query Create New Web Form Page Create New Object of DataContext Class Coding for Data Selection Query Coding for Data Insertion Query Coding for Data Updating and Deleting Queries Develop ASP.NET Web Application to Select Data from Oracle Databases Modify Connection String and Connection Object on LogIn Page Modify Query String in LogIn Page Modify Query String in Faculty Page Modify Query Strings in Course Page Develop ASP.NET Web Application to Insert Data into Oracle Databases Add Two Controls to Faculty Page Modify Codes to Some Methods on Faculty Page Create Codes to Insert New Faculty on Faculty Page Develop ASP.NET Web Application to Update and Delete Data in Oracle Databases Modify Project to Perform Data Updating Create Codes to Update Button Click Method Develop Stored Procedures to Perform Data Deleting Delete Existing Record from Faculty Table Develop Codes for Delete Button Click Method Validate Data Deleting Action Constraint Property On Delete Cascade in Data Table Chapter Summary 717 Homework ASP.NET Web Services Web Services and Their Components Procedures to Build a Web Service Structure of a Typical Web Service Project Real Considerations When Building a Web Service Project Procedures to Build an ASP.NET Web Service 725
22 xx Contents 9.3 Build ASP.NET Web Service Projects to Access SQL Server Database Files and Items Created in the New Web Service Project Feeling of Hello World Web Service Project as It Runs Modify Default Web Service Project Create a Base Class to Handle Error Checking for Our Web Service Create Real Web Service Class Add Web Methods into Our Web Service Class Develop the Codes for Web Methods to Perform the Web Services Web Service Connection Strings Modify Existing Web Method Develop Codes to Perform Database Queries Develop Codes for User-Defined Methods Develop Stored Procedures to Perform the Data Query Develop Stored Procedure WebSelectFacultySP Add Another Web Method to Call the Stored Procedure Use DataSet as Returning Object for Web Method Build Windows-Based Web Service Clients to Use the Web Services Create a Web Service Proxy Class Develop Graphic User Interface for Windows-Based Client Project Develop Code to Use the Web Service Build Web-Based Web Service Clients to Use the Web Service Create a New Website Project and Add an Existing Web Page Add a Web Service Reference and Modify the Web Form Window Modify Codes for Related Methods Deploy the Completed Web Service to Production Servers Copy Web Service Files to Virtual Directory Publish Precompiled Web Service Build ASP.NET Web Service Project to Insert Data into SQL Server Database Modify Existing Web Service Project Web Service Project Development Procedure Develop and Modify Codes for Code-Behind Page Develop and Modify First Web Method SetSQLInsertSP Develop Second Web Method GetSQLInsert Develop and Modify Third Web Method SQLInsertDataSet Develop Fourth Web Method GetSQLInsertCourse Build Windows-Based Web Service Clients to Use Web Services Build Web-Based Web Service Clients to Use Web Services Create a New Website Project and Add Existing Web Page Add Web Service Reference and Modify Web Form Window Modify Codes for Related Methods 795
23 Contents xxi 9.5 Build ASP.NET Web Service to Update and Delete Data for SQL Server Database Modify Existing Web Service Project Modify Related Web Methods Modify Web Method from SetSQLInsertSP to SQLUpdateSP Modify Web Method GetSQLInsert to GetSQLCourse Modify Web Method GetSQLInsertCourse to GetSQLCourseDetail Add New Web Method SQLDeleteSP Develop Two Stored Procedures WebUpdateCourseSP and WebDeleteCourseSP Develop Stored Procedure WebUpdateCourseSP Develop Stored Procedure WebDeleteCourseSP Build Windows-Based Web Service Clients to Use Web Services Build Web-Based Web Service Clients to Use Web Services Create New Website Project and Add Existing Web Page Add Web Service Reference and Modify Web Form Window Modify Codes for Related Methods Modify Codes in Page_Load Method Develop Codes for Update Button s Click Method Develop Codes for Delete Button s Click Method Modify Codes in Select Button s Click Method and Related Methods Modify Codes in SelectedIndexChanged Method Build ASP.NET Web Service Project to Access Oracle Database Build Web Service Project WebServiceOracleSelect Modify Connection String Modify Namespace Directories Modify Web Method GetSQLSelect and Related Methods Modify Web Method GetSQLSelectSP and Related Methods Modifications to Stored Procedure WebSelectFacultySP Modifications to Codes in Web Method GetSQLSelectSP Modify Web Method GetSQLSelectDataSet Build Web Service Clients to Use the Web Service WebServiceOracleSelect Build ASP.NET Web Service Project to Insert Data into Oracle Database Build Web Service Project WebServiceOracleInsert Modify Connection String Modify Namespace Directories Modify Web Method SetSQLInsertSP and Related Methods Modify Web Method GetSQLInsert and Related Methods Modify Web Method SQLInsertDataSet Modify Web Method GetSQLInsertCourse and Related Methods Build Web Service Clients to Use Web Service WebServiceOracleInsert Build ASP.NET Web Service to Update and Delete Data for Oracle Database 872
24 xxii Contents Build Web Service Project WebServiceOracleUpdateDelete Modify Connection String Modify Namespace Directories Modify Web Method SQLUpdateSP and Related Methods Develop Stored Procedure UpdateCourse_SP Modify Web Method GetSQLCourse and Related Methods Modify Web Method GetSQLCourseDetail and Related Methods Modify Web Method SQLDeleteSP Develop Stored Procedure WebDeleteCourseSP Implement and Test Web Service Project Build Web Service Clients to Use Web Service Chapter Summary 890 Homework 891 Index 895 About the Author 903
25 Preface Databases have become an integral part of our modern daily life. We are an information - driven society. Database technology has a direct impact on our daily lives. Decisions are routinely made by organizations based on the information collected and stored in databases. A record company may decide to market certain CDs in selected regions based on the music preferences of teenagers. Grocery stores display more popular items at eye level and reorders are based on the inventories taken at regular intervals. Other examples include patients records in hospitals, customers account information in banks, book orders by the libraries, club memberships, auto part orders, winter cloth stock by department stores, and many others. In addition to database management systems, in order to effectively apply and implement databases in real industrial or commercial systems, a good graphic user interface (GUI) is needed to enable users to access and manipulate their records or data in databases. Visual C#.NET is an ideal candidate to provide this GUI functionality. Unlike other programming languages, Visual C#.NET has advantages such as easy - to - learn and easy - to - be - understood with few learning curves. Beginning from Visual Studio.NET 2003, Microsoft integrated a few programming languages such as Visual C++, Visual Basic, C#, and Visual J# into a dynamic model called.net Framework that makes Internet and Web programming easy and simple, and any language integrated in this model can be used to develop professional and efficient Web applications that can be used to communicate with others via Internet. ADO.NET and ASP.NET are two important submodels of.net Framework. The former provides all components, including Data Providers, DataSet and DataTable, to access and manipulate data against different databases. The latter provides support to develop Web applications and Web services in ASP.NET environment to assist users to exchange information between clients and servers easily and conveniently. This book is mainly designed for college students and software programmers who want to develop practical and commercial database programming with Visual C#.NET 2008 and relational databases such as Microsoft Access, SQL Server 2005, and Oracle Database 10 g XE. The book provides a detailed description about practical considerations and applications in database programming with Visual C# 2008 with authentic examples and detailed explanations. More important, a new writing style is developed and implemented in this book, combined with real examples, to provide readers with a clear picture as how to handle the database programming issues in Visual C#.NET 2008 environment. The outstanding features of this book include, but are not limited to: 1. A novel writing style is adopted to try to attract students or beginning programmers interested in learning and developing practical database programs, and to avoid the headache caused by using huge blocks of codes in the traditional database programming books. xxiii
26 xxiv Preface 2. A real completed sample database CSE_DEPT with three versions (Microsoft Access 2007, SQL Server 2005 SP2, and Oracle Database 10 g XE Release 2) is provided and used throughout the entire book. Step by step, detailed illustrations and descriptions about how to design and build a practical relational database are provided. 3. Both fundamental and advanced database - programming techniques are covered to convenience both beginning students and experienced programmers. 4. The new database query technique LINQ API, which includes LINQ to Objects, LINQ to DataSet, LINQ to SQL, LINQ to Entities, and LINQ to XML, is discussed, analyzed, and implemented in actual projects with line - by - line explanations. 5. More than 60 real sample database programming projects are covered in the book with detailed illustrations and explanations to help students understand key techniques and programming technologies. 6. Three types of popular databases are covered and discussed in detail with practical sample examples: Microsoft Access, SQL Server 2005, and Oracle Database 10 g Express Edition (XE). 7. Various actual data providers are discussed and implemented in the sample projects, such as the SQL Server and Oracle data providers. Instead of using the OleDb to access the SQL Server or Oracle databases, the real SQL Server and Oracle data providers are utilized to connect to the Visual C#.NET 2008 directly to perform data operations. 8. Homework and selected solutions are provided for each chapter to strengthen and improve students learning and understanding topics they have studied. 9. PowerPoint teaching slides are also provided to help instructors in teaching and organizing their classes. 10. This is a good textbook for college students, as well as a good reference book for programmers, software engineers, and academic researchers. I sincerely hope that this book provides useful and practical assistance and guidelines to all readers and users who adopt this book. I will be more than happy to know that you have been able to develop and build professional and practical database applications with the help of this book. Charlotte, North Carolina January 2010 Y ING BAI
27 Acknowledgment The first and most special thanks to my wife, Yan Wang. I could not have finished this book without her sincere encouragement and support. Special thanks to Dr. Satish Bhalla, who made great contributions to Chapter 2. Dr. Bhalla is a specialist in database programming and management, especially in SQL Server, Oracle, and DB2. Dr. Bhalla spent a lot of time preparing materials for the first part on Chapter 2 and he deserves this thank you. Many thanks to Mr. Steve Welch who makes this book available to you. You would not find this book on the market without Mr. Steve Welch s deep perspective and hard work. The same thanks are extended to the editorial team of this book. Without their contributions, it wouldn t have been impossible for this book to be published. This thank you should also be extended to the following book reviewers for their precious opinions to this book: Dr. Jifeng Xu, Research Scientist, The Boeing Company Dr. Xiaohong Yuan, Associate Professor, Department of Computer Science, North Carolina A &T State University Dr. Daoxi Xiu, Application Analyst Programmer, North Carolina Administrative Office of the Courts Dr. Dali Wang, Assistant Professor, Department of Physics and Computer Science, Christopher Newport University Finally but not the last, thanks should be forwarded to all the guys who supported me to finish this book. Y. B. xxv
28
29 Chapter 1 Introduction During my years of teaching database programming at the college level, it was difficult to find a good textbook on this topic. I have had to combine a few different professional books together as references to teach this course. Most of these books are specially designed for programmers or software engineers, which cover a lot of programming strategies and present huge blocks of code, which can give a terrible headache to the college students or beginning programmers who are new to Visual Studio.NET and database programming. I have had to prepare class presentations and develop homework problems and exercises for my students. I used to dream that one day I would find a good textbook that would be suitable for college students or beginning programmers and help them to learn and master database programming with Visual C#.NET easily and conveniently. Finally, I decided to do something myself about filling this lack of a good textbook. Another reason for writing this book is the job market. As you know, most industrial and commercial companies in the United States are database applications businesses such as manufactures, banks, hospitals, and retailers. The majority of them need professional people to develop and build database - related applications, but not database management and design systems. To enable our students to become good candidates for these companies, we need to create a book like this one. Unlike most database programming books on the current market, which discuss and present database programming techniques with huge blocks of programming codes from the first page to the last page, this book uses a new writing style to show readers, especially college students, how to develop professional and practical database programs in Visual C# 2008 by using Visual Studio.NET 2008 Design Tools and Wizards related to ADO. NET 3.5 and to apply codes that are autogenerated by using Wizards. By using this new style, the headaches caused by using huge blocks of programming code can be eliminated. Instead, a simple and easy way to create database programs using the design tools can be developed to enable students to build professional and practical database programs in more efficient and interesting ways. There are many different database programming books available on the market. However, rarely do you find a book like this one that implements a novel writing style to attract students interested in this topic. To meet the needs of some experienced or advanced students or software engineers, the book contains two programming Practical Database Programming With Visual C#.NET, by Ying Bai Copyright 2010 the Institute of Electrical and Electronics Engineers, Inc. 1
30 2 Chapter 1 Introduction methods: the fundamental database programming method Visual Studio.NET 2008 Design Tools and Wizards and an advanced database programming method the runtime objects method. In the second method, all database - related objects are created and applied during or when your project is running by utilizing quite few blocks of code. OUTSTANDING FEATURES OF THE BOOK 1. A novel writing style is adopted to try to attract students and beginning programmers interestings in learning and developing practical database programs, and to avoid the headaches caused by using huge blocks of code in the traditional database programming books. 2. Covers both fundamental and advanced database programming techniques for both beginning and experienced students as well as programmers. 3. Three types of popular databases are covered and discussed in detail with practical examples: Microsoft Access 2007, SQL Server 2005 Express SP2, and Oracle Database 10 g Express Edition Release 2. Unlike traditional database programming books, in which some classical commercial databases such as Northwind are used, three customer - built databases, CSE_DEPT.accdb, CSE_DEPT.mdf, and the Oracle version of CSE_DEPT, are created and implemented in all sample projects throughout the whole book. 4. The new database query technique, LINQ API, which includes LINQ to Objects, LINQ to DataSet, LINQ to SQL, LINQ to Entities, and LINQ to XML, is discussed, analyzed, and implemented in actual projects with line-by-line explanations. 5. The various actual data providers are discussed and implemented in the sample projects, such as the SQL Server and Oracle data providers. Instead of using the OleDb to access the SQL Server or Oracle databases, the real SQL Server and Oracle data providers are utilized to connect to the Visual C#.NET 2008 directly to perform data operations. 6. More than 60 real sample database programming projects are covered with detailed illustrations and explanations to help students understand key techniques and programming technologies. 7. Homework and selected solutions are provided for each chapter to strengthen and improve student learning and understanding. 8. PowerPoint teaching slides are also provided to help instructors in teaching and organizing their classes. 9. It is a good textbook for college students and a good reference book for programmers, software engineers, and academic researchers. TARGET AUDIENCE This book is designed for college students and software programmers who want to develop practical and commercial database programming with Visual C#.NET 2008 and relational databases such as Microsoft Access, SQL Server 2005, and Oracle Database 10 g XE. Fundamental knowledge and understanding of Visual C#.NET and Visual Studio.NET IDE is assumed.
Practical Database Programming with Visual Basic.NET
Practical Database Programming with Visual Basic.NET IEEE Press 445 Hoes Lane Piscataway, NJ 08854 IEEE Press Editorial Board Lajos Hanzo, Editor in Chief R. Abari M. El-Hawary S. Nahavandi J. Anderson
More informationPractical Database Programming with Visual Basic.NET
Practical Database Programming with Visual Basic.NET IEEE Press 445 Hoes Lane Piscataway, NJ 08854 IEEE Press Editorial Board Lajos Hanzo, Editor in Chief R. Abari M. El-Hawary S. Nahavandi J. Anderson
More informationPractical Database Programming with Java
Practical Database Programming with Java Ying Bai Department of Computer Science and Engineering Johnson C. Smith University Charlotte, North Carolina IEEE PRESS A John Wiley & Sons, Inc., Publication
More informationWIRELESS SENSOR NETWORKS A Networking Perspective Edited by Jun Zheng Abbas Jamalipour A JOHN WILEY & SONS, INC., PUBLICATION WIRELESS SENSOR NETWORKS IEEE Press 445 Hoes Lane Piscataway, NJ 08854 IEEE
More informationReal-Time Optimization by Extremum-Seeking Control
Real-Time Optimization by Extremum-Seeking Control Real-Time Optimization by Extremum-Seeking Control KARTIK B. ARIYUR MIROSLAV KRSTIĆ A JOHN WILEY & SONS, INC., PUBLICATION Copyright 2003 by John Wiley
More informationCOMPONENT-ORIENTED PROGRAMMING
COMPONENT-ORIENTED PROGRAMMING COMPONENT-ORIENTED PROGRAMMING ANDY JU AN WANG KAI QIAN Southern Polytechnic State University Marietta, Georgia A JOHN WILEY & SONS, INC., PUBLICATION Copyright 2005 by John
More informationRelational Database Index Design and the Optimizers
Relational Database Index Design and the Optimizers DB2, Oracle, SQL Server, et al. Tapio Lahdenmäki Michael Leach A JOHN WILEY & SONS, INC., PUBLICATION Relational Database Index Design and the Optimizers
More informationDIFFERENTIAL EQUATION ANALYSIS IN BIOMEDICAL SCIENCE AND ENGINEERING
DIFFERENTIAL EQUATION ANALYSIS IN BIOMEDICAL SCIENCE AND ENGINEERING DIFFERENTIAL EQUATION ANALYSIS IN BIOMEDICAL SCIENCE AND ENGINEERING ORDINARY DIFFERENTIAL EQUATION APPLICATIONS WITH R William E. Schiesser
More informationCOSO Enterprise Risk Management
COSO Enterprise Risk Management COSO Enterprise Risk Management Establishing Effective Governance, Risk, and Compliance Processes Second Edition ROBERT R. MOELLER John Wiley & Sons, Inc. Copyright # 2007,
More informationLEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS DINESH C. VERMA IBM T. J. Watson Research Center A JOHN WILEY & SONS, INC., PUBLICATION
LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS DINESH C. VERMA IBM T. J. Watson Research Center A JOHN WILEY & SONS, INC., PUBLICATION LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS LEGITIMATE APPLICATIONS
More informationTASK SCHEDULING FOR PARALLEL SYSTEMS
TASK SCHEDULING FOR PARALLEL SYSTEMS Oliver Sinnen Department of Electrical and Computer Engineering The University of Aukland New Zealand TASK SCHEDULING FOR PARALLEL SYSTEMS TASK SCHEDULING FOR PARALLEL
More information"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary
Description Course Summary This course provides knowledge and skills on developing Web applications by using Microsoft Visual. Objectives At the end of this course, students will be Explore ASP.NET Web
More informationLEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS
LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS DINESH C. VERMA IBM T. J. Watson Research Center A JOHN WILEY & SONS, INC., PUBLICATION LEGITIMATE APPLICATIONS OF PEER-TO-PEER NETWORKS LEGITIMATE APPLICATIONS
More informationAgile Database Techniques Effective Strategies for the Agile Software Developer. Scott W. Ambler
Agile Database Techniques Effective Strategies for the Agile Software Developer Scott W. Ambler Agile Database Techniques Effective Strategies for the Agile Software Developer Agile Database Techniques
More informationHASHING IN COMPUTER SCIENCE FIFTY YEARS OF SLICING AND DICING
HASHING IN COMPUTER SCIENCE FIFTY YEARS OF SLICING AND DICING Alan G. Konheim JOHN WILEY & SONS, INC., PUBLICATION HASHING IN COMPUTER SCIENCE HASHING IN COMPUTER SCIENCE FIFTY YEARS OF SLICING AND DICING
More informationMODERN MULTITHREADING
MODERN MULTITHREADING Implementing, Testing, and Debugging Multithreaded Java and C++/Pthreads/Win32 Programs RICHARD H. CARVER KUO-CHUNG TAI A JOHN WILEY & SONS, INC., PUBLICATION MODERN MULTITHREADING
More informationProfessional ASP.NET 2.0 Databases. Thiru Thangarathinam
Professional ASP.NET 2.0 Databases Thiru Thangarathinam Professional ASP.NET 2.0 Databases Professional ASP.NET 2.0 Databases Thiru Thangarathinam Professional ASP.NET 2.0 Databases Published by Wiley
More informationModern Experimental Design
Modern Experimental Design THOMAS P. RYAN Acworth, GA Modern Experimental Design Modern Experimental Design THOMAS P. RYAN Acworth, GA Copyright C 2007 by John Wiley & Sons, Inc. All rights reserved.
More informationMicroprocessor Theory
Microprocessor Theory and Applications with 68000/68020 and Pentium M. RAFIQUZZAMAN, Ph.D. Professor California State Polytechnic University Pomona, California and President Rafi Systems, Inc. WILEY A
More informationBeginning Transact-SQL with SQL Server 2000 and Paul Turley with Dan Wood
Beginning Transact-SQL with SQL Server 2000 and 2005 Paul Turley with Dan Wood Beginning Transact-SQL with SQL Server 2000 and 2005 Beginning Transact-SQL with SQL Server 2000 and 2005 Paul Turley with
More information7 Windows Tweaks. A Comprehensive Guide to Customizing, Increasing Performance, and Securing Microsoft Windows 7. Steve Sinchak
Take control of Windows 7 Unlock hidden settings Rev up your network Disable features you hate, for good Fine-tune User Account control Turbocharge online speed Master the taskbar and start button Customize
More informationIP MULTICAST WITH APPLICATIONS TO IPTV AND MOBILE DVB-H
IP MULTICAST WITH APPLICATIONS TO IPTV AND MOBILE DVB-H Daniel Minoli A JOHN WILEY & SONS, INC., PUBLICATION IP MULTICAST WITH APPLICATIONS TO IPTV AND MOBILE DVB-H IP MULTICAST WITH APPLICATIONS TO
More informationDeveloping Web Applications Using Microsoft Visual Studio 2008 SP1
Developing Web s Using Microsoft Visual Studio 2008 SP1 Introduction This five day instructor led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2008
More informationLinux Command Line and Shell Scripting Bible. Third Edtion
Linux Command Line and Shell Scripting Bible Third Edtion Linux Command Line and Shell Scripting BIBLE Third Edition Richard Blum Christine Bresnahan Linux Command Line and Shell Scripting Bible, Third
More informationStudy Guide. Robert Schmidt Dane Charlton
Study Guide Study Guide Robert Schmidt Dane Charlton Senior Acquisitions Editor: Kenyon Brown Development Editor: Candace English Technical Editors: Eric Biller and Brian Atkinson Production Editor: Christine
More informationMicrosoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio
Course Overview: This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2010. Prerequisites Before attending this course, students
More information10267 Introduction to Web Development with Microsoft Visual Studio 2010
10267 Introduction to Web Development with Microsoft Visual Studio 2010 Course Number: 10267A Category: Visual Studio 2010 Duration: 5 days Course Description This five-day instructor-led course provides
More informationDE Introduction to Web Development with Microsoft Visual Studio 2010
DE-10267 Introduction to Web Development with Microsoft Visual Studio 2010 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2010 Delivery Method Instructor-led (Classroom)
More informationDE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1
DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2008 Delivery Method Instructor-led (Classroom)
More information"Charting the Course... SharePoint 2007 Hands-On Labs Course Summary
Course Summary Description This series of 33 hands-on labs allows students to explore the new features of Microsoft SharePoint Server, Microsoft Windows, Microsoft Office, including Microsoft Office Groove,
More informationIntroduction to Web Development with Microsoft Visual Studio 2010
Introduction to Web Development with Microsoft Visual Studio 2010 Course 10267; 5 Days, Instructor-led Course Description This five-day instructor-led course provides knowledge and skills on developing
More informationAlgorithms and Parallel Computing
Algorithms and Parallel Computing Algorithms and Parallel Computing Fayez Gebali University of Victoria, Victoria, BC A John Wiley & Sons, Inc., Publication Copyright 2011 by John Wiley & Sons, Inc. All
More informationInstalling and Administering a Satellite Environment
IBM DB2 Universal Database Installing and Administering a Satellite Environment Version 8 GC09-4823-00 IBM DB2 Universal Database Installing and Administering a Satellite Environment Version 8 GC09-4823-00
More informationTHE ARCHITECTURE OF COMPUTER HARDWARE, SYSTEM SOFTWARE, AND NETWORKING
FOURTH EDITION THE ARCHITECTURE OF COMPUTER HARDWARE, SYSTEM SOFTWARE, AND NETWORKING AN INFORMATION TECHNOLOGY APPROACH Irv Englander Bentley University John Wiley & Sons, Inc. Vice President & Executive
More informationOVER 750 QUESTIONS AND 55 TASK-BASED SIMULATIONS! CPA EXAM REVIEW. Auditing and Attestation. O. Ray Whittington, CPA, PhD Patrick R.
OVER 750 QUESTIONS AND 55 TASK-BASED SIMULATIONS! 2012 CPA EXAM REVIEW Auditing and Attestation O. Ray Whittington, CPA, PhD Patrick R. Delaney, CPA, PhD WILEY CPA EXAM REVIEW WILEY EXAM REVIEW Auditing
More informationBeginning ASP.NET. 4.5 in C# Matthew MacDonald
Beginning ASP.NET 4.5 in C# Matthew MacDonald Contents About the Author About the Technical Reviewers Acknowledgments Introduction xxvii xxix xxxi xxxiii UPart 1: Introducing.NET. 1 & Chapter 1: The Big
More informationDATABASE DESIGN AND DEVELOPMENT
DATABASE DESIGN AND DEVELOPMENT DATABASE DESIGN AND DEVELOPMENT An Essential Guide for IT Professionals PAULRAJ PONNIAH A JOHN WILEY & SONS, INC., PUBLICATION Copyright 2003 by John Wiley & Sons, Inc.
More informationMastering UNIX Shell Scripting
Mastering UNIX Shell Scripting Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus Second Edition Randal K. Michael Wiley Publishing, Inc. Mastering UNIX Shell
More informationIntroduction to Web Development with Microsoft Visual Studio 2010
10267 - Introduction to Web Development with Microsoft Visual Studio 2010 Duration: 5 days Course Price: $2,975 Software Assurance Eligible Course Description Course Overview This five-day instructor-led
More informationLinux Command Line and Shell Scripting Bible
Linux Command Line and Shell Scripting Bible Richard Blum Wiley Publishing, Inc. Linux Command Line and Shell Scripting Bible Linux Command Line and Shell Scripting Bible Richard Blum Wiley Publishing,
More information2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days
2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days Certification Exam This course will help you prepare for the following Microsoft Certified
More information"Charting the Course... Agile Database Design Techniques Course Summary
Course Summary Description This course provides students with the skills necessary to design databases using Agile design techniques. It is based on the Scott Ambler book Agile Database Techniques: Effective
More informationJoin the p2p.wrox.com. Wrox Programmer to Programmer. Beginning PHP 5.3. Matt Doyle
Join the discussion @ p2p.wrox.com Wrox Programmer to Programmer Beginning PHP 5.3 Matt Doyle Programmer to Programmer Get more out of WROX.com Interact Take an active role online by participating in our
More informationCOURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010
Course Name OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Duration 2 Days Course Structure Online Course Overview This course provides knowledge and skills on developing
More informationCOPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Welcome to SQL Server Integration Services 1. Chapter 2: The SSIS Tools 21
Introduction xxix Chapter 1: Welcome to SQL Server Integration Services 1 SQL Server SSIS Historical Overview 2 What s New in SSIS 2 Getting Started 3 Import and Export Wizard 3 The Business Intelligence
More informationCHAPTER 1: INTRODUCING C# 3
INTRODUCTION xix PART I: THE OOP LANGUAGE CHAPTER 1: INTRODUCING C# 3 What Is the.net Framework? 4 What s in the.net Framework? 4 Writing Applications Using the.net Framework 5 What Is C#? 8 Applications
More informationJ2EE TM Best Practices Java TM Design Patterns, Automation, and Performance
J2EE TM Best Practices Java TM Design Patterns, Automation, and Performance Darren Broemmer Wiley Publishing, Inc. Dear Valued Customer, The WILEY advantage We realize you re a busy professional with
More information2609 : Introduction to C# Programming with Microsoft.NET
2609 : Introduction to C# Programming with Microsoft.NET Introduction In this five-day instructor-led course, developers learn the fundamental skills that are required to design and develop object-oriented
More informationC# Programming: From Problem Analysis to Program Design. Fourth Edition
C# Programming: From Problem Analysis to Program Design Fourth Edition Preface xxi INTRODUCTION TO COMPUTING AND PROGRAMMING 1 History of Computers 2 System and Application Software 4 System Software 4
More informationMCITP Windows Server 2008 Server Administrator Study Guide
MCITP Windows Server 2008 Server Administrator Study Guide Darril Gibson MCITP Windows Server 2008 Server Administrator Study Guide MCITP Windows Server 2008 Server Administrator Study Guide Darril Gibson
More information"Charting the Course... MOC A Developing Data Access Solutions with Microsoft Visual Studio Course Summary
Description Course Summary In this course, experienced developers who know the basics of data access (CRUD) in Windows client and Web application environments will learn to optimize their designs and develop
More informationChapter 3. Windows Database Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill
Chapter 3 Windows Database Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Objectives - 1 Retrieve and display data from a SQL Server database on Windows forms Use the
More informationC# Programming: From Problem Analysis to Program Design 2nd Edition. David McDonald, Ph.D. Director of Emerging Technologies. Objectives (1 of 2)
13 Database Using Access ADO.NET C# Programming: From Problem Analysis to Program Design 2nd Edition David McDonald, Ph.D. Director of Emerging Technologies Objectives (1 of 2) Retrieve and display data
More informationCreate a Windows Application that Reads- Writes PI Data via PI OLEDB. Page 1
Create a Windows Application that Reads- Writes PI Data via PI OLEDB Page 1 1.1 Create a Windows Application that Reads-Writes PI Data via PI OLEDB 1.1.1 Description The goal of this lab is to learn how
More informationBeginning Web Programming with HTML, XHTML, and CSS. Second Edition. Jon Duckett
Beginning Web Programming with HTML, XHTML, and CSS Second Edition Jon Duckett Beginning Web Programming with HTML, XHTML, and CSS Introduction............................................... xxiii Chapter
More informationBeginning Visual Basic 2005 Databases. Thearon Willis
Beginning Visual Basic 2005 Databases Thearon Willis Beginning Visual Basic 2005 Databases Beginning Visual Basic 2005 Databases Thearon Willis Beginning Visual Basic 2005 Databases Published by Wiley
More informationCOMPUTING FOR NUMERICAL METHODS USING VISUAL C++
COMPUTING FOR NUMERICAL METHODS USING VISUAL C++ COMPUTING FOR NUMERICAL METHODS USING VISUAL C++ Shaharuddin Salleh Universiti Teknologi Malaysia Skudai, Johor, Malaysia Albert Y. Zomaya University of
More informationMicrosoft. Microsoft Visual C# Step by Step. John Sharp
Microsoft Microsoft Visual C#- 2010 Step by Step John Sharp Table of Contents Acknowledgments Introduction xvii xix Part I Introducing Microsoft Visual C# and Microsoft Visual Studio 2010 1 Welcome to
More information"Charting the Course to Your Success!" MOC B Programming in C# Course Summary
Course Summary Description This training course teaches developers the programming skills that are required for developers to create Windows applications using the C# language. During their five days in
More informationASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.
Preface p. xix ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. 6 Personalization p. 6 Master Pages p. 6 Navigation p.
More informationCHAPTER 1: GETTING STARTED WITH ASP.NET 4 1
FOREWORD INTRODUCTION xxv xxvii CHAPTER 1: GETTING STARTED WITH ASP.NET 4 1 Microsoft Visual Web Developer 2 Getting Visual Web Developer 3 Installing Visual Web Developer Express 3 Creating Your First
More informationADO.NET 2.0. database programming with
TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will
More informationBeginning Visual Basic 2015
Beginning Visual Basic 2015 Introduction................................................... xxvii Chapter 1 Welcome to Visual Basic 2015................................ 1 Chapter 2 The Microsoft.NET Framework..............................
More informationMastering BEA WebLogic Server Best Practices for Building and Deploying J2EE Applications
Mastering BEA WebLogic Server Best Practices for Building and Deploying J2EE Applications Gregory Nyberg Robert Patrick Paul Bauerschmidt Jeffrey McDaniel Raja Mukherjee Mastering BEA WebLogic Server
More informationIntroduction to Web Development with Microsoft Visual Studio 2010 (10267A)
Introduction to Web Development with Microsoft Visual Studio 2010 (10267A) Overview This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual
More informationWindows Database Applications
3-1 Windows Database Applications Chapter 3 In this chapter, you learn to access and display database data on a Windows form. You will follow good OOP principles and perform the database access in a datatier
More informationOracle PL/SQL. DUMmIES. by Michael Rosenblum and Dr. Paul Dorsey FOR
Oracle PL/SQL FOR DUMmIES by Michael Rosenblum and Dr. Paul Dorsey Oracle PL/SQL For Dummies Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 www.wiley.com Copyright 2006 by
More informationContents. LINQ for Visual C# 2008 i
Contents Chapter 1: LINQ to Objects...1 Introduction...1 A Simple C# 3.0 LINQ to Objects Program...1 Extension Methods...3 Lambda Expressions...5 Expression Trees...6 Object Initialization Expressions...7
More informationWelcome to Starting Out with Programming Logic and Design, Third Edition.
Welcome to Starting Out with Programming Logic and Design, Third Edition. This book uses a language-independent approach to teach programming concepts and problem-solving skills, without assuming any previous
More informationCustomizing and Upgrading Linux Second Edition Linda McKinnon Al McKinnon Gearhead Press Wiley Computer Publishing John Wiley & Sons, Inc. Customizing and Upgrading Linux Customizing and Upgrading Linux
More informationEssential Angular for ASP.NET Core MVC
Essential Angular for ASP.NET Core MVC Adam Freeman Essential Angular for ASP.NET Core MVC Adam Freeman London, UK ISBN-13 (pbk): 978-1-4842-2915-6 ISBN-13 (electronic): 978-1-4842-2916-3 DOI 10.1007/978-1-4842-2916-3
More informationDOT NET Syllabus (6 Months)
DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL
More informationPESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore
PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore 560 100 Department of MCA COURSE INFORMATION SHEET Programming Using C#.NET (13MCA53) 1. GENERAL INFORMATION: Academic Year:
More informationLearning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo
Learning C# 3.0 Jesse Liberty and Brian MacDonald O'REILLY Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo Table of Contents Preface xv 1. C# and.net Programming 1 Installing C# Express 2 C# 3.0
More information"Charting the Course to Your Success!" MOC D Querying Microsoft SQL Server Course Summary
Course Summary Description This 5-day instructor led course provides students with the technical skills required to write basic Transact-SQL queries for Microsoft SQL Server 2014. This course is the foundation
More informationCOPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio
Introduction XXV Part I: C# Fundamentals 1 Chapter 1: The.NET Framework 3 What s the.net Framework? 3 Common Language Runtime 3.NET Framework Class Library 4 Assemblies and the Microsoft Intermediate Language
More informationCourse ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008
Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008 Audience This course is intended for introductory-level Web developers who have knowledge of Hypertext Markup
More informationChapter 1: Introducing SQL Server
Leiter ftoc.tex V3-03/25/2009 1:31pm Page xv Introduction xxvii Chapter 1: Introducing SQL Server 2008 1 A Condensed History of SQL Server 1 In the Beginning 1 The Evolution of a Database 1 Microsoft Goes
More informationPro LINQ. Language Integrated Query in C# Apress. Adam Freeman and Joseph C. Rattz, Jr.
Pro LINQ Language Integrated Query in C# 2010 Adam Freeman and Joseph C. Rattz, Jr. Apress Contents Contents at a Glance Contents About the Author About the Technical Reviewer Acknowledgments Part 1: Pro
More informationProgramming Microsoft LINQ in
Microsoft Programming Microsoft LINQ in Framework 4 Microsoft NET Paolo Pialorsi Marco Russo Table of Contents Preface Acknowledgments Introduction xvii xix xxi Part I LINQ Foundations 1 LINQ Introduction
More informationProgram Contents: DOTNET TRAINING IN CHENNAI
DOTNET TRAINING IN CHENNAI NET Framework - In today s world of enterprise application development either desktop or Web, one of leaders and visionary is Microsoft.NET technology. The.NET platform also
More information"Charting the Course... MOC A Developing Microsoft SQL Server 2012 Databases. Course Summary
Course Summary Description This 5-day instructor-led course introduces SQL Server 2012 and describes logical table design, indexing and query plans. It also focuses on the creation of database objects
More informationLevel: M.Ed. Credit Hour: 3 (2+1) Semester: Third Teaching Hour: 80(32+48)
Course Title: Visual Programming Course No. : ICT Ed 535 161 Nature of course: Theoretical + Practical Level: M.Ed. Credit Hour: 3 (2+1) Semester: Third Teaching Hour: 80(32+48) 1. Course Description This
More information"Charting the Course... Java Programming Language. Course Summary
Course Summary Description This course emphasizes becoming productive quickly as a Java application developer. This course quickly covers the Java language syntax and then moves into the object-oriented
More informationITT Technical Institute. PT2520T Database Concepts Onsite Course SYLLABUS
ITT Technical Institute PT2520T Database Concepts Onsite Course SYLLABUS Credit hours: 4.5 Contact/Instructional hours: 67 (41 Theory Hours, 26 Hours) Prerequisite(s) and/or Corequisite(s): Prerequisites:
More informationSecuring SCADA Systems. Ronald L. Krutz
Securing SCADA Systems Ronald L. Krutz Securing SCADA Systems Securing SCADA Systems Ronald L. Krutz Securing SCADA Systems Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis,
More informationDeveloping Web Applications Using Microsoft Visual Studio 2008
Course 2310C: Developing Web Applications Using Microsoft Visual Studio 2008 Length: 5 Day(s) Published: April 24, 2008 Language(s): English Audience(s): Developers Level: 100 Technology: Microsoft Visual
More informationINFORMATION HIDING IN COMMUNICATION NETWORKS
0.8125 in Describes information hiding in communication networks, and highlights its important issues, challenges, trends, and applications. Highlights development trends and potential future directions
More informationAcknowledgments The author and editors wish to thank the following instructors for their technical and academic contributions:
Project Editor Developmental Editor Consulting Editor Senior Designer Technical Reviewer Cover Designer Copyeditor Desktop Production Specialists Proofreader Indexer Photo Researcher Sonja Brown James
More informationADO.NET In A Nutshell Download Free (EPUB, PDF)
ADO.NET In A Nutshell Download Free (EPUB, PDF) Written by experts on the MicrosoftÂ.NET programming platform, ADO.NET in a Nutshell delivers everything.net programmers will need to get a jump-start on
More informationOracle Cloud. Using Oracle Social Network Release E
Oracle Cloud Using Oracle Social Network Release 11.1.11.0 E61996-01 November 2015 Oracle Cloud Using Oracle Social Network, Release 11.1.11.0 E61996-01 Copyright 2012, 2015 Oracle and/or its affiliates.
More informationCHAPTER 1: INTRODUCTION TO THE IDE 3
INTRODUCTION xxvii PART I: IDE CHAPTER 1: INTRODUCTION TO THE IDE 3 Introducing the IDE 3 Different IDE Appearances 4 IDE Configurations 5 Projects and Solutions 6 Starting the IDE 6 Creating a Project
More informationImplementing Security and Tokens: Current Standards, Tools, and Practices
Implementing Email Security and Tokens: Current Standards, Tools, and Practices Sean Turner Russ Housley Wiley Publishing, Inc. Implementing Email Security and Tokens: Current Standards, Tools, and Practices
More informationMigrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)
Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#) Course Length: 5 Days Course Overview This instructor-led course teaches developers to gain in-depth guidance on
More informationDEVELOPING WINDOWS APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010
CENTER OF KNOWLEDGE, PATH TO SUCCESS Website: DEVELOPING WINDOWS APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010 Course: 10262A; Duration: 5 Days; Instructor-led Time: 9.00am 5.00pm Break: 10.15am 10.30am
More informationCloud Phone Systems. Andrew Moore. Making Everything Easier! Nextiva Special Edition. Learn:
Making Everything Easier! Nextiva Special Edition Cloud Phone Systems Learn: What cloud phone systems are and how they can benefit your company About the many advantages a cloud phone system offers Features
More informationMathematics Shape and Space: Polygon Angles
a place of mind F A C U L T Y O F E D U C A T I O N Department of Curriculum and Pedagogy Mathematics Shape and Space: Polygon Angles Science and Mathematics Education Research Group Supported by UBC Teaching
More informationIN PRACTICE. Daniele Bochicchio Stefano Mostarda Marco De Sanctis. Includes 106 practical techniques MANNING
IN PRACTICE Daniele Bochicchio Stefano Mostarda Marco De Sanctis Includes 106 practical techniques MANNING contents preface xv acknowledgments xvii about this book xix about the authors xxiii about the
More informationASP.NET Web Forms Programming Using Visual Basic.NET
ASP.NET Web Forms Programming Using Visual Basic.NET Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.
More informationVariable Scope The Main() Function Struct Functions Overloading Functions Using Delegates Chapter 7: Debugging and Error Handling Debugging in Visual
Table of Contents Title Page Introduction Who This Book Is For What This Book Covers How This Book Is Structured What You Need to Use This Book Conventions Source Code Errata p2p.wrox.com Part I: The OOP
More information