1.install plug-in setupnbearvsplugin.exe
2. Create a table
3.use nbear.tools.dbtoentitydesign.exe to generate entitydesign classes from the database and include them to the designs project.
4. If entitydesigntoentityconfig. XML is configured and the designs project is compiled, the plug-in automatically generates or updates entity/entityimpls. XML (there are new tables or modified tables, with 3/4 duplicates)
5. Configure connectstring and components in Web. config
6. Design Service Classes and interfaces and write serviceinterfaces and serviceimpls
7. Call IOC, entity, and serviceinterfaces in webui to complete business operations.
Note: I personally think it is better to create a table. I am not used to "design a class diagram first, and then generate a design and table from the class diagram ". First, the class alias cannot directly obtain such a value as [sqltype ("nvarchar (64 )")]. CodeAnd you have to write it by hand. Second, most of them get used to having tables and objects first, and they feel faster.
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