C# 2010 Coding Briefs Data Access
By Kevin Hough
()
About this ebook
The data access framework that we will develop in Coding Briefs will allow us to create datasets, execute queries, and select data in a secure, managed process.
This framework will provide a solid foundation for managing secure data access through stored procedures, allowing us to select, insert, update, and delete records from a SQL Server database. We will have access to parameterized queries and will develop an automated process for discovering stored procedure parameters.
The major areas that we will address in this brief are as follows:
-Discussing the Data Access Framework (DAL)
-Importing Libraries and Declaring Values
-Managing the Database Connections
-Selecting Records
-Manipulating Data
-Preparing the Select and Execute Methods
-Working with Parameters
-Testing the Data Access Framework
And, as a bonus, two complete sample applications have been added; one for Windows, and one in ASP .Net, that will test all of the features on the data access framework.
Related to C# 2010 Coding Briefs Data Access
Related ebooks
Visual Basic 2010 Coding Briefs Data Access Rating: 5 out of 5 stars5/5Creating ASP.NET Core Web Applications: Proven Approaches to Application Design and Development Rating: 0 out of 5 stars0 ratingsImplementing Power BI in the Enterprise Rating: 5 out of 5 stars5/5Java / J2EE Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsBeginning Jakarta EE: Enterprise Edition for Java: From Novice to Professional Rating: 0 out of 5 stars0 ratingsBeginning Access 2003 VBA Rating: 5 out of 5 stars5/5The Definitive Guide to Azure Data Engineering: Modern ELT, DevOps, and Analytics on the Azure Cloud Platform Rating: 0 out of 5 stars0 ratingsInstant Citrix XenApp Rating: 5 out of 5 stars5/5C# for Beginners: Learn in 24 Hours Rating: 0 out of 5 stars0 ratingsCloud Computing Interview Questions You'll Most Likely Be Asked: Second Edition Rating: 0 out of 5 stars0 ratingsInstalling SQL Server 2012 Step by Step Rating: 0 out of 5 stars0 ratingsLearning DHTMLX Suite UI Rating: 0 out of 5 stars0 ratingsImplementing C# 11 and .NET 7.0: Learn how to build cross-platform apps with .NET Core (English Edition) Rating: 0 out of 5 stars0 ratingsR2DBC Revealed: Reactive Relational Database Connectivity for Java and JVM Programmers Rating: 0 out of 5 stars0 ratings.NET Mastery: The .NET Interview Questions and Answers Rating: 0 out of 5 stars0 ratingsMastering ASP.NET: Building Powerful Web Applications Rating: 0 out of 5 stars0 ratingsCloud Infrastructure and Data Center Rating: 0 out of 5 stars0 ratingsProfessional Access 2013 Programming Rating: 0 out of 5 stars0 ratingsC Programming Wizardry: From Zero to Hero in 10 Days: Programming Prodigy: From Novice to Virtuoso in 10 Days Rating: 0 out of 5 stars0 ratingsMulti-Tier Application Programming with PHP: Practical Guide for Architects and Programmers Rating: 0 out of 5 stars0 ratingsSAS Programming Guidelines Interview Questions You'll Most Likely Be Asked: Job Interview Questions Series Rating: 0 out of 5 stars0 ratingsC# Programming Illustrated Guide For Beginners & Intermediates: The Future Is Here! Learning By Doing Approach Rating: 0 out of 5 stars0 ratingsProgramming Windows Workflow Foundation: Practical WF Techniques and Examples using XAML and C# Rating: 0 out of 5 stars0 ratingsProfessional Microsoft SQL Server 2012 Integration Services Rating: 0 out of 5 stars0 ratingsSQL Server 2019 AlwaysOn: Supporting 24x7 Applications with Continuous Uptime Rating: 0 out of 5 stars0 ratingsSQL Server Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratings
Programming For You
Game Development with Unreal Engine 5: Learn the Basics of Game Development in Unreal Engine 5 (English Edition) Rating: 0 out of 5 stars0 ratingsPython: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5The Unofficial Guide to Open Broadcaster Software: OBS: The World's Most Popular Free Live-Streaming Application Rating: 0 out of 5 stars0 ratingsPython: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Modern C++ for Absolute Beginners: A Friendly Introduction to C++ Programming Language and C++11 to C++20 Standards Rating: 0 out of 5 stars0 ratingsHTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Learn PowerShell in a Month of Lunches, Fourth Edition: Covers Windows, Linux, and macOS Rating: 0 out of 5 stars0 ratingsSQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5Learn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5Beginning Programming with Python For Dummies Rating: 3 out of 5 stars3/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Python GUI Programming Cookbook - Second Edition Rating: 5 out of 5 stars5/5
Reviews for C# 2010 Coding Briefs Data Access
0 ratings0 reviews
Book preview
C# 2010 Coding Briefs Data Access - Kevin Hough
implied.
Dedication
To my wife, Cheryl, for all of her support, encouragement, and love.
The Audience for Coding Briefs
C# 2010 Coding Briefs Data Access is written for intermediate level developers. To get the most out of this book, the developer should be familiar with the following tasks:
• Creating solutions in Visual Studio 2010
• Developing code in C# 2010
• Writing If/Then/Else statements
• Creating and calling Functions and Procedures
• Working with My.Settings to store Strings
• Debugging code
• Working with Stored Procedures
Obtaining the Code
The source code is included in the project files that can be downloaded from www.runtimepublishing.com. Follow these steps to get the code up and running:
1. Follow the steps in the section, Quick Start, to register and unlock the code for this Coding Brief
2. Enter the Unlock Code that is located in the section Running the Windows Sample Application later in this brief
3. Open the projects in Visual Studio 2010
The code for this brief includes the following projects:
About the Author
Kevin Hough heads the Project Management Office and the Software Engineering department at Trans-Trade, Inc in Dallas/Ft. Worth, Texas, USA.
He has been developing enterprise level software since 1983 and has specialized in Microsoft technologies since 1990. Currently, he is developing with Visual Basic, C#, SQL Server, Silverlight, and DotNetNuke.
Kevin has designed and developed large scale commercial applications and Web sites for corporations including EXXON, Pennzoil, Compaq, Shell, and Texaco, as well as for leading universities, including Harvard, Stanford, and Rice. You can reach Kevin at kevinh@runtimepublishing.com.
C# 2010 Coding Briefs
Data Access
In today’s high-tech, information driven world, the security of personal data is vital. We have all heard the horror stories of personal data being compromised from companies, both large and small.
The data access framework that we will develop in Coding Briefs will allow us to create datasets, execute queries, and select data in a secure, managed process.
This framework will provide a solid foundation for managing secure data access through stored procedures, allowing us to select, insert, update, and delete records from a SQL Server database. We will have access to parameterized queries and will develop an automated process for discovering stored procedure parameters.
The major areas that we will address in this brief are as follows:
• Discussing the Data Access Framework (DAL)
• Importing Libraries and Declaring Values
• Managing the Database Connections
• Selecting Records
• Manipulating Data
• Preparing the Select and Execute Methods
• Working with Parameters
• Testing the Data Access Framework
And, as a bonus, two complete sample applications have been added; one for Windows, and one in ASP .Net, that