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>