/// <summary> /// Initializes database (create then update schema) /// </summary> protected void InitDatabase() { List <string> createStatements = new List <string>(); foreach (var clsWrapper in statementBuilder.GetAllEntities()) { string createStatement = statementBuilder.CreateEntity(clsWrapper); if (createStatement != null) { createStatements.Add(createStatement); } } foreach (string statement in createStatements) { Execute(statement); } UpdateSchema(); }