NBearLite PetShop 4.0 sample source code

Source: Internet
Author: User

This example uses NBearLite v1.0.1.2 to modify the source code based on. Net PetShop 4.0. NBearLite is used to rewrite the data access section of The BLL, Profile, and Membership modules with equivalent functions, remove DALFacrory, IDAL and other projects (because NBearLite can transparently switch between multiple database sources without modifying the Code), remove the Order-based MSMQ asynchronous processing part. This example demonstrates how to use NBearLite as a data access component for development. CaceDependency is disabled by default in Web. config of the Web Project, and Sqlite is set as the default database.

This example supports all databases supported by NBearLite, including SqlServer, Oracle, MsAccess, Sqlite, MySql, and PostgreSql (the source code of this example only contains database scripts or database files of SqlServer, MsAccess, and Sqlite, if you want to run it in another database, you need to export it from the existing SqlServer or MsAccess database ).

Download

You can download the latest version and source code from the http://nbear.org.

How to install

Decompress the package. If you want to use the SqlServer database, run InstallDatabases. bat in the DatabaseScripts directory.

How to switch database sources

To switch to a database, you only need to comment out the current ConnectionStrings and uncomment the ConnectionStrings of the database you want to use.

If you find any problems during use, please post them here or leave me a message. Thank you!

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.