Public Member Functions | |
| DatabaseHelper (Core.ApplicationContext context) | |
| IDbConnection | GetLocalConnection () |
| IDbConnection | GetLocalConnection (String connection_string) |
| String[] | GetColumns (String table_name) |
| bool | GetColumnExists (String table_name, String column_name) |
| bool | AddColumn (String table_name, String column_name, String column_type_expr) |
Static Public Member Functions | |
| static System.IO.MemoryStream | GetMemoryStreamFromColumn (System.Data.IDataReader reader, int column_index) |
Properties | |
| bool | LocalOnly [get, set] |
| Core.Interfaces.IConfig | DatabaseConfig [get, set] |
| Core.Data.DbFactory.CONNECTION_TYPE | ConnectionType [get, set] |
Private Attributes | |
| Core.Interfaces.IConfig | database_config = null |
| Core.Data.DbFactory.CONNECTION_TYPE | connection_type = Core.Data.DbFactory.CONNECTION_TYPE.UNKNOWN |
| Core.ApplicationContext | application_context = null |
| bool | local_only = false |
| Core.Database.DatabaseHelper.DatabaseHelper | ( | Core.ApplicationContext | context | ) |
| IDbConnection Core.Database.DatabaseHelper.GetLocalConnection | ( | ) |
| IDbConnection Core.Database.DatabaseHelper.GetLocalConnection | ( | String | connection_string | ) |
| String [] Core.Database.DatabaseHelper.GetColumns | ( | String | table_name | ) |
connection.Close();
| bool Core.Database.DatabaseHelper.GetColumnExists | ( | String | table_name, | |
| String | column_name | |||
| ) |
| bool Core.Database.DatabaseHelper.AddColumn | ( | String | table_name, | |
| String | column_name, | |||
| String | column_type_expr | |||
| ) |
connection.Close();
| static System.IO.MemoryStream Core.Database.DatabaseHelper.GetMemoryStreamFromColumn | ( | System.Data.IDataReader | reader, | |
| int | column_index | |||
| ) | [static] |
Core.Interfaces.IConfig Core.Database.DatabaseHelper.database_config = null [private] |
Core.Data.DbFactory.CONNECTION_TYPE Core.Database.DatabaseHelper.connection_type = Core.Data.DbFactory.CONNECTION_TYPE.UNKNOWN [private] |
Core.ApplicationContext Core.Database.DatabaseHelper.application_context = null [private] |
bool Core.Database.DatabaseHelper.local_only = false [private] |
bool Core.Database.DatabaseHelper.LocalOnly [get, set] |
Core.Interfaces.IConfig Core.Database.DatabaseHelper.DatabaseConfig [get, set] |
Core.Data.DbFactory.CONNECTION_TYPE Core.Database.DatabaseHelper.ConnectionType [get, set] |