public BusinessObject GetObjectByName(String strObjectName) { DataSet ds = null; if (DatabaseHelper.IsSQLConnection()) { ds = (DatabaseHelper as SqlDatabaseHelper).RunStoredProcedure(StoredProcedureGenerator.GetSPName(StoredProcedureGenerator.SPType.SelectByName, TableName), strObjectName); } else { ds = (DatabaseHelper as SQLiteDatabaseHelper).RunScript(QueryGenerator.GenSelectByName(TableName, strObjectName, false, true)); } return(BusinessObjectHelper.GetBusinessObject(ds, TableName)); }