I have a Database class which contanins the follwing methods:
- public bool ExecuteUDIQuery(string query) // UDI = Update Delete Insert
- public bool ExecuteSelectQuery(string query)
- public bool ExecuteSP(string sp, string[,] parms)
- public int ExecuteSPReturnValue(string sp, string[,] parms)
The results of the methods are stored in private datasets or datatables. These objects are defined as getters.
There're about 10 classes which use the Database class. Every class creates an object of the class Database. Now i was thinking to make the Database class static. Is this a good idea? If so, why? Of not, why not?