Role of Profile

Source: Internet
Author: User
Role of Profile

Profile in UML (Unified Modeling Language) provides a general extension mechanism for customizing UML models for specific fields or platforms. Profiles applies stereotypes, tagged values, and constraints to specific model elements such as classes, attributes, operations, and activities. A profile object is a series of UML collections customized for specific fields (such as aerospace, health care, finance) or platforms (J2EE,. net.

It helps you analyze and find the bottleneck of the program running, find the time consumed, and also help you find the code that will not be executed. So as to optimize the program.

Profile in program development

Profile is the data storage for each account, such as the user shopping cart data of an e-commerce website.

"User configuration file" is a direct translation of the word "Profile". In fact, there is no file meaning. It is stored in the database by default and you do not need to manage the file yourself.

Profile is an attribute of the httpcontext class and is a profilebase class inherited from the settingsbase class.

The so-called provider is that you can define how the profile is stored. By default, it is stored in the localserver database and requires the website to be restarted without losing data, so it cannot exist in the memory.

Required profile attributes in Web. config: What is required? If you do not modify the default storage, only the name of each profile is required, such:

<Profile defaultprovider = "sqlprovider"> // modify the storage.

<Providers>

<Clear/>

<Add name = "sqlprovider"

Type = "system. Web. profile. sqlprofileprovider"

Connectionstringname = "sqlservices"

Applicationname = "sampleapplication"

Description = "sqlprofileprovider for sampleapplication"/>

</Providers>

<Properties>

<Add name = "zipcode"/> // The user-configured project is required.

<Add name = "cityandstate"/>

</Properties>

</Profile>

</System. Web>

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.