Exemple #1
0
        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);
        }
Exemple #2
0
        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));
        }