Combat. Net data Access Layer-4

Source: Internet
Author: User
Access | Data code 3: My Data entity–1, the data Entity in the application

MyCustomer: Customer with basic fields, support data list, inherit from Mydef

[Serializable ()]

public class Mycustomer:mydef

{

public string Id;

public string Name;

public string Phone;



Public MyCustomer () {}

Public MyCustomer (ArrayList al): Base (AL) {}

}



Mydef: Provides the data entity support required by the current application.

Including O/R Mapping,xml, inheriting from Defbase

[Serializable ()]

public class Mydef:defbase, IList, IEnumerable

{

O/R Mapping Fields

[NonSerialized ()]

protected internal objectset _ostorm = null;

...



XML fields

[NonSerialized ()]

protected internal XmlNode _xmlnode = null;

...



Public mydef () {}

Public Mydef (ArrayList al): Base (AL) {}

Public Mydef (Objectset ostorm)

{

This._ostorm = Ostorm;

This._typeentity =

Myentitytype.orm_objectspaces_objectset;

}



Public Mydef (XmlNode XmlNode)

{

This._xmlnode = XmlNode;

this._typeentity = Myentitytype.xml_node;

}

...

}















































































































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


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.