public void deleteWithId <T>(T table) { SqlParameter paramater = InfoClass.getId(table); string tableName = InfoClass.getClassName(table); ReadInDataBase("Delete FROM " + tableName.ToUpper() + " WHERE " + paramater.ParameterName + "=" + paramater.Value); }
public SqlDataReader selectWithID <T>(T table, int id) { SqlParameter paramater = InfoClass.getId(table); string tableName = InfoClass.getClassName(table); return(ReadInDataBase("SELECT * FROM " + tableName.ToUpper() + " WHERE " + paramater.ParameterName + "=" + paramater.Value)); }