Пример #1
0
        private int InvokeAction(ISQLAction action, string status, Dictionary <string, object> o, List <WhereClause> where)
        {
            int result = -1;

            switch (status.ToLower())
            {
            case "insert":
                result = action.Insert(o);
                break;

            case "insertorupdate":
                result = action.InsertOrUpdate(o);
                break;

            case "update":
                result = action.Update(o, where);
                break;

            case "delete":
                result = action.Delete(o, where);
                break;

            default:
                result = action.InsertOrUpdate(o);
                break;
            }
            return(result);
        }
Пример #2
0
        public override void DeleteSendData(Dictionary <string, object> data)
        {
            ISQLAction action = Factory.CreateAction(_tableconfig.Tag, _tableconfig, _helper);

            lock (locker)
            {
                action.Delete(data, null);
            }
        }