Combat. Net data Access Layer-22

Source: Internet
Author: User
Tags include mail client dreamweaver visual studio
Access to | data Ok, before ending the whole "my plan", the author finally "presented" a generation

Code (is it a little dizzy?) , I hope to make a perfect ending for your DAF trip.



Code 17: Update data by DAF

Create a customer data Access object

Customerdaf DAF = new Customerdaf ();





Create the Customer Data entity object, set the Object field value

Customer cust_1 = new Customer ();



Cust_1.id = "ALFKI";

Cust_1.phone = "12345678";



Update the data store based on the customer data entity object

Daf. UpdateCustomer (cust_1);





Create the customer Data entity object that contains a list of data

Customer cust_2 = new Customer (new ArrayList ());



Declares another customer data entity object that is used to insert data into the

In the list of the above customer data entity objects

Customer cust_obj = null;



Create the Customer Data entity object, set the Object field value and insert it into the Cust_2 entity object

Cust_obj = new Customer ();

Cust_obj. Id = "Anatr";

Cust_obj. Name = "Willian.zhang";

Cust_2.add (Cust_obj);

Create the Customer Data entity object, set the Object field value and insert it into the Cust_2 entity object

Cust_obj = new Customer ();

Cust_obj. Id = "ANTON";

Cust_obj. Name = "Xuefeng.zhang";

Cust_2.add (Cust_obj);



Update the data store based on the list of data in the Customer Data entity object

Daf. UpdateCustomers (cust_2);





















































































Next paragraph: http://www.csdn.net/develop/Read_Article.asp?id=27567

Comments on the article
Szlen (2004-05-14)
Sunshine Business SMS mass Wang Yuan Code edition (isbsms)
Download Address: http://www.szlon.com
Software Architecture: three-layer structure (performance layer + business logic Layer + data processing layer)
Development language: C #
Database: Access2000
Program Category: Windows application
SOURCE Price: 680/600 yuan (member price)

To purchase the source code, please login to our website order: http://www.szlen.com

Software Operating Environment:
1. The software is developed using Microsoft's latest C # language, and development tools include: Microsoft Visual Studio. NET 2003,macromedia Dreamweaver Mx,fireworks 4
2. The client needs to install the. NET Framework SDK version 1.1.
3. Support, such as operating system: Windows, Windows ME, Windows Nt,windows, Windows Server 2003, Windows XP
---------------------------------------

Software Name: Sunshine Business Mail search Wang Yuan Code edition (Isbes)
Download Address: http://www.szlon.com
Software Architecture: three-layer structure (performance layer + business logic Layer + data processing layer)
Development language: C #
Database: Access2000
Program Category: Windows application
SOURCE Price: 580/500 yuan (member price)

To purchase the source code, please login to our website order: http://www.szlen.com

Software Operating Environment:
1. The software is developed using Microsoft's latest C # language, and development tools include: Microsoft Visual Studio. NET 2003,macromedia Dreamweaver Mx,fireworks 4
2. The client needs to install the. NET Framework SDK version 1.1.
3. Support, such as operating system: Windows, Windows ME, Windows Nt,windows, Windows Server 2003, Windows XP
---------------------------------------
Technical support
qq:17506793
Msn:sun188com@hotmail.com
Website address: http://www.szlen.com
Contact Person: Mr. Chen
Contact Tel: 0755-26742591
Fax Number: 0755-26742783
E-mail: sun188com@hotmail.com
Software Demo: http://www.szlon.com
---------------------------------------



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.