Here are the examples of the csharp api class AsyncRPGSharedLib.Database.DatabaseManager.DeleteDatabaseSQL(System.Data.Linq.Mapping.MetaModel) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: AsyncRPG
Source File: DatabaseManager.cs
Source File: DatabaseManager.cs
public bool DeleteDatabase( out string result_code) { return ExecuteSQLCommand( new AsyncRPGDataContext(m_config.CONNECTION_STRING), (AsyncRPGDataContext context) => { // Delete all of the tables string deleteSQL= DeleteDatabaseSQL(context.Mapping); context.ExecuteCommand(deleteSQL); }, out result_code); }
0
2. Example
Project: AsyncRPG
Source File: DatabaseManager.cs
Source File: DatabaseManager.cs
public bool ReCreateDatabase( Logger logger, out string result_code) { return ExecuteSQLCommand( new AsyncRPGDataContext(m_config.CONNECTION_STRING), (AsyncRPGDataContext context) => { // Delete and Re-create all tables StringBuilder databaseSQL = new StringBuilder(); databaseSQL.Append(DeleteDatabaseSQL(context.Mapping)); databaseSQL.Append(CreateDatabaseSQL(context.Mapping)); context.ExecuteCommand(databaseSQL.ToString()); // Fill in the tables with some initial values InitalizeTables(context, logger); }, out result_code); }