0%

Book Description

Working with data and databases in C# certainly can be daunting if you’re coming from VB6, VBA, or Access. With this hands-on guide, you’ll shorten the learning curve considerably as you master accessing, adding, updating, and deleting data with C#—basic skills you need if you intend to program with this language.

No previous knowledge of C# is necessary. By following the examples in this book, you’ll learn how to tackle several database tasks in C#, such as working with SQL Server, building data entry forms, and using data in a web service. The book’s code samples will help you get started on your own projects.

  • Create a Windows Forms application with a datagrid
  • Connect to multiple data sources, including Access and SQL Server
  • Add, edit, and update data in a database you choose and design
  • Enable users to choose their data source at runtime
  • Learn the roles of DataTable, DataView, BindingSource, Filters, and other objects
  • Understand where variables are declared and how they impact the code
  • Build a simple web service that connects to a database

Table of Contents

  1. A Note Regarding Supplemental Files
  2. Preface
    1. Objectives
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
  3. 1. First Steps: Form with a Datagrid
    1. Installing Software
    2. Basic Syntax
      1. C# Operators
      2. Selection Statements
      3. Adding Filtering
      4. Some Other Considerations
    3. What’s Next?
  4. 2. C# Data Access to SQL Server
    1. What’s Next
  5. 3. Building Data Entry Forms
    1. Binding a TextBox to Data
    2. Simple Data Entry Form
  6. 4. Creating Data Entry Forms with Built-In Controls
  7. 5. Data in a Web Service
    1. Writing a Web Service
    2. What’s Next
  8. 6. Editing Access Data on the Web
    1. What’s Next?
  9. 7. Additional C# and Database Topics
    1. Referring to Connection Strings
    2. Building Strings with Database Data
    3. Reporting
    4. Exporting Tables to XML
    5. Wrap-Up
  10. About the Author
  11. Copyright
3.144.123.147