Esempio n. 1
0
        public override object InternalExecute(Program program, object[] arguments)
        {
            SimpleDevice device = Compiler.ResolveCatalogIdentifier(program.Plan, (string)arguments[0], true) as SimpleDevice;

            if (device == null)
            {
                throw new SimpleDeviceException(SimpleDeviceException.Codes.SimpleDeviceExpected);
            }
            Schema.TableVar tableVar = Compiler.ResolveCatalogIdentifier(program.Plan, (string)arguments[1], true) as Schema.TableVar;
            if (tableVar == null)
            {
                throw new SimpleDeviceException(SimpleDeviceException.Codes.TableVarExpected);
            }
            device.BeginUpdate(program.ServerProcess, tableVar);
            return(null);
        }
Esempio n. 2
0
 protected internal SimpleDeviceSession(SimpleDevice device, ServerProcess serverProcess, DeviceSessionInfo deviceSessionInfo) : base(device, serverProcess, deviceSessionInfo)
 {
 }