public bool Delete(TradePointType type)
 {
     if (type.Id < 0)
     {
         return(false);
     }
     SQLConnectionHandler.GetInstance()
     .Execute(SQLCommand.DeleteTradePointType(type), true);
     return(true);
 }
Esempio n. 2
0
        /* deletes */

        public static String DeleteTradePointType(TradePointType type)
        {
            return(GetCommand(ref deleteTradePointType, deleteTradePointTypePath, new string[] { type.Id.ToString() }));
        }
Esempio n. 3
0
        /* updated */

        public static String UpdateTradePointType(TradePointType type)
        {
            return(GetCommand(ref updateTradePointType, updateTradePointTypePath, new string[] { type.Name, String.Format("{0}", type.Id) }));
        }
Esempio n. 4
0
        /* inserts */

        public static String InsertTradePointType(TradePointType type)
        {
            return(GetCommand(ref insertTradePointType, insertTradePointTypePath, new string[] { type.Name }));
        }
 public bool Insert(TradePointType type)
 {
     SQLConnectionHandler.GetInstance()
     .Execute(SQLCommand.InsertTradePointType(type), true);
     return(true);
 }