Beispiel #1
0
        public static Order GetRecord(string orderID)
        {
            TableElement        te       = new TableElement("OrderID", orderID);
            List <TableElement> elements = m_db.GetRecord(te);
            Order od = new Order(elements);

            return(od);
        }
Beispiel #2
0
        public static User GetRecord(string userName)
        {
            TableElement        te       = new TableElement("UserName", userName);
            List <TableElement> elements = m_db.GetRecord(te);
            User u = new User(elements);

            return(u);
        }
Beispiel #3
0
        public static Dye GetRecord(string dyeCode)
        {
            TableElement        te       = new TableElement("DyeCode", dyeCode);
            List <TableElement> elements = m_db.GetRecord(te);

            if (elements == null)
            {
                return(null);
            }
            Dye dye = new Dye(elements);

            return(dye);
        }