Example #1
0
        public static void Delete(string constructionCode)
        {
            string sql = @"
                DELETE FROM JboxColorEntries
                WHERE
                    ConstructionCode = '" + constructionCode + "'";

            var db = JboxColorEntry.GetDatabase();

            db.ExecuteNonQuery(sql);
        }
Example #2
0
        public static List <JboxColorEntry> Get(string constructionCode, string orderColumn)
        {
            string sql = @"
                SELECT * FROM JboxColorEntries
                WHERE
                    ConstructionCode = '" + constructionCode + @"'
                ORDER BY " + orderColumn;

            var db = JboxColorEntry.GetDatabase();

            return(db.ExecuteQuery <JboxColorEntry>(sql));
        }