BACnet.Client.Db.UpdateObjectCommand.UpdateObjectCommand C# (CSharp) Method

UpdateObjectCommand() public method

Constructs a new update object command instance
public UpdateObjectCommand ( SQLiteConnection connection ) : System
connection System.Data.SQLite.SQLiteConnection
return System
        public UpdateObjectCommand(SQLiteConnection connection)
        {
            _command = new SQLiteCommand(Queries.UpdateObject, connection);
            _deviceInstance = new SQLiteParameter("@deviceInstance");
            _objectType = new SQLiteParameter("@objectType");
            _instance = new SQLiteParameter("@instance");
            _name = new SQLiteParameter("@name");
            _props = new SQLiteParameter("@props");

            _command.Parameters.Add(_deviceInstance);
            _command.Parameters.Add(_objectType);
            _command.Parameters.Add(_instance);
            _command.Parameters.Add(_name);
            _command.Parameters.Add(_props);
        }