help.axcms.netAxinom Logo
Save Save Chapter Send Feedback

Upgrading to AxCMS.net 5.2.3

 

Caution by CreateApplication

If you are using Create Application for your development to fill your database with initial data, please check your method DeleteAll(). The first occurency of

query = new DbDeleteQuery("AxElementCategory");
query.ConnectionManager = _msConnectionManager;
query.ExecuteNonQuery();

Has to be replaced with

query = new DbDeleteQuery();
query.ConnectionManager = _msConnectionManager;
query.AddTable("AxElementCategory", "AEC");
query.AddTable(new DbTableInnerJoin("AxCategory", "AC", "AEC.CategoryID = AC.CategoryID"));
query.AddWhere("AC.ParentID not in (10, 20) OR ElementType <> 19");
query.ExecuteNonQuery();

The old one will delete all your right and roles.