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!