Topics on basic functions (1)

Source: Internet
Author: User

I have already mentioned the function set of LINQ in section C #3.0. Here we will explain the usage of each function in detail. Based on vs2005 beta1, Microsoft may change its name in the future.

Prepare the classes that will be used later today:

Class person
...{
Int _ id;
Int _ idrole;
String _ lastname;
String _ firstname;
Public int ID
...{
Get... {return _ id ;}
Set... {_ id = value ;}
}
Public int idrole
...{
Get... {return _ idrole ;}
Set... {_ idrole = value ;}
}
Public String lastname
...{
Get... {return _ lastname ;}
Set... {_ lastname = value ;}
}
Public String firstname
...{
Get... {return _ firstname ;}
Set... {_ firstname = value ;}
}
}

Class role
...{
Int _ id;
String _ roledescription;
Public int ID
...{
Get... {return _ id ;}
Set... {_ id = value ;}
}
Public String roledescription
...{
Get... {return _ roledescription ;}
Set... {_ roledescription = value ;}
}
}

Class salary
...{
Int _ idperson;
Int _ year;
Double _ salary;
Public int idperson
...{
Get... {return _ idperson ;}
Set... {_ idperson = value ;}
}
Public int year
...{
Get... {return _ year ;}
Set... {_ year = value ;}
}
Public double salaryyear
...{
Get... {return _ salary ;}
Set... {_ salary = value ;}
}
}

The preceding three frequently used classes are person, role, and salary. The relationship between them can be seen at a glance. I will not talk about it anymore. Nothing complicated.

Related Article

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.