Cactus Detailed explanation

Source: Internet
Author: User

Cactus recommended More than one year of experienced people to play, just get started MVC, do not understand the following components please learn by yourself, do not try to be ambitious.

Cactus composition (based on . net4.5.2): DAPPER+MVC4+AUTOFAC front-end CSS Framework pure, database: SQLite, Mssql,mysql,pgsql. The default is SQLite so you can run without installation (currently SQLite is the most complete, the other several databases are incomplete, waiting for others to contribute code).

After downloading the cactus, don't be busy running, you need to check the Web. config and see the instructions for using. txt.

ConnectionStrings node inside the sqltype is used to identify the data source used, the default is SQLite ( the configuration mentioned in this article is strictly case-sensitive ), the name is related to the configuration in Autofac,

Want to expand the service, also register here (do not understand the IOC can own Baidu AUTOFAC). (in theory, multiple data sources can be used simultaneously)

Now you can run the F5, choose Debug Mode (Linux is for the individual library compatibility to add the compilation mode, learning Linux development can explore each other).

Error Resolution:

1. NuGet appears, wrong, follow the prompts to download the NuGet version (vs 2015 May encounter)

2. There is a hint to add a reference to not found Load assembly, most likely the two DLLs

These two errors are most likely to occur (environmental factors are the cause).

Database location

cactus.db files are SQLite database files (can download specialized viewing tools to view, password modification can be in the Sys_user table itself to modify a MD5, experienced people should know, I do not detail), At present due to several other database sevicer not write the whole, so SQL is not complete, forgive me!

In fact, as long as the implementation of Cactus.iservice in the interface, and then in front of the AUTOFAC inside registration can be used, difficult (welcome someone to contribute this part of the code).

Following the above, the basic cactus can be run (currently I have deployed cactus to a CENTOS7 Linux system http://douxiubar.com/), cactus can be deployed on Windows and Linux

Cactus Detailed explanation

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.