Using c sharp
-
Constructors and destructors perform special functions as members of classes. Constructors are used to initialize objects. Conversely, you can use destructors to delete an object when it is not required. This chapter introduces the concept of constructors and destructors. In addition, the chapter explains how to implement constructors and destructors. The chapter also explains how constructors and destructors help in identifying the life cycle of the object.
18p tienphuoconline 03-05-2011 104 8 Download
-
Writing and Reading XML Using a DataSet Object XML is a convenient format for moving information around. You can write out the contents of the DataTable objects contained in a DataSet to an XML file using the WriteXml() method
8p daisuphu 29-07-2010 143 10 Download
-
Using Windows Controls Table 6.2 lists the commonly used Windows form controls that you can pick from the Windows Forms section of the Toolbox. You can place any of these controls on your Windows form
2p daisuphu 29-07-2010 85 13 Download
-
Using Transactions with a DataSet (SQL) In Chapter 3, "Introduction to Structured Query Language," you saw how you can group SQL statements together into transactions.
2p daisuphu 29-07-2010 97 10 Download
-
Using the SQL Server Documentation SQL Server also comes with extensive electronic documentation. To access this documentation, you select Start ➣ Programs ➣ Microsoft SQL Server ➣ Books Online.
2p daisuphu 29-07-2010 102 13 Download
-
Using the Get* Methods to Read Column Values Before I show you the other Get* methods that read column values, you need to know the standard C# types and the values they support
3p daisuphu 29-07-2010 120 6 Download
-
Figure 6.23: Creating a relationship between two tables Note Remember: You're unselecting these columns, so you uncheck the columns for the Orders table
7p daisuphu 29-07-2010 99 9 Download
-
Using the Default Sort Algorithm If you want to sort the DataRowView objects in your DataView based on the primary key of your DataTable, you can use a shortcut. Instead of setting the Sort property of your DataView
1p daisuphu 29-07-2010 113 4 Download
-
Using the Data Form Wizard to Create a Windows Form In this section, you'll use the VS .NET Data Form Wizard to create a Windows application that accesses both the Customers and Orders tables.
5p daisuphu 29-07-2010 150 20 Download
-
Using the .NET Documentation Both the .NET SDK and VS .NET come with extensive documentation, including the full reference to all the classes in .NET. As you become proficient with C#
4p daisuphu 29-07-2010 99 4 Download
-
Using Stored Procedures to Add, Modify, and Remove Rows from the Database You can get a DataAdapter object to call stored procedures to add, modify, and remove rows from the database.
6p daisuphu 29-07-2010 167 31 Download
-
Setting the InsertCommand Property of a DataAdapter The following example creates a SqlCommand object named myInsertCommand that contains a call to the AddProduct4() stored procedure
8p daisuphu 29-07-2010 118 22 Download
-
Using SQL Server In this section, you'll explore some of the tools you use to manage SQL Server. Specifically, you'll learn how to start and stop SQL Server
9p daisuphu 29-07-2010 128 15 Download
-
Removing Rows From a Table You use the DELETE statement to remove rows from a table. When removing a row, you specify the name of the table and the rows to delete using a WHERE clause
8p daisuphu 29-07-2010 88 3 Download
-
Figure 3.6: Products where ProductName is like 'Cha%' The next SELECT statement uses the LIKE operator to retrieve products where the ProductName column
9p daisuphu 29-07-2010 63 4 Download
-
Figure 3.16: Using the DISTINCT keyword to retrieve distinct Country column values As you can see, the SELECT statement only displays Country column values that are unique: duplicate values are eliminated.
11p daisuphu 29-07-2010 79 3 Download
-
Using SQL SQL (pronounced sequel) is the standard language for accessing relational databases. As you'll see in this chapter, SQL is easy to learn and use
9p daisuphu 29-07-2010 102 4 Download
-
You use the POWER() function to get the value of a number raised to a specified power. The following example returns 8: SELECT POWER(2, 3)
9p daisuphu 29-07-2010 87 4 Download
-
Using Functions SQL Server provides a number of functions you can use to get values from the database.
8p daisuphu 29-07-2010 98 5 Download
-
The output from this program is as follows: count = 1 Milliseconds = 101 mySqlConnection.State = Open count = 2 Milliseconds = 0 mySqlConnection.State = Open count = 3 Milliseconds = 0 mySqlConnection.State = Open count = 4 Milliseconds
7p daisuphu 29-07-2010 94 18 Download