The repository, in addition to the original text, contains a database with three users. In the Directory of WebApp App_Start there is a setting file App_config.xml . In it, it is necessary to prescribe the paths to the database, the nibernate configuration file, to the folder - the storage of files and the initializing SQL script.
The script initializing the table with users is located in dbmodel app_data fill_users.sql . It contains 3 accounts with passwords, respectively, mail addresses (with [email protected] Ivanov password, the rest, respectively). When performing, it completely cleanses the tables , including documents, so it is better to delete the init_script parameter (but not the parameter itself) from App_config.xml after the first start.
NHIBERNATE configuration is located in __dbmodel__. The HBM2DDL.auto parameter is set to Update . When filling out an empty base (without a scheme in general), I think it is better to put in Create . After the first launch , back to Update , otherwise - a clean base at each launch.
The configuration is tested on the basis without tables with fully filled App_config.xml and hbm2ddl.auto in Create .
The original text of the stored procedure __dbmodel app_data__. After creating the base from scratch (if this happens), you need to add. Nhibernate and SQL script do not touch it.
If something does not work with a setting file, you can prescribe everything directly in the ConfigHelper class
Use CASE REMAGRAM The root of the repository