ArtemisComm.Proxy.UI.SQLLogger.PacketToLogging.ProcessValues C# (CSharp) Метод

ProcessValues() публичный Метод

public ProcessValues ( object key, string propertyName, object value, string propertyType, string hexValue ) : void
key object
propertyName string
value object
propertyType string
hexValue string
Результат void
        public void ProcessValues(object key, string propertyName, object value, string propertyType, string hexValue)
        {
            lock (lockingObject2)
            {
                using (SqlCommand cmd =
                    new SqlCommand("INSERT INTO [Values] (PacketSequenceID, Property, PropertyType, Value, HexValue) "
                    + "VALUES (@PacketSequenceID, @Property, @PropertyType, @Value, @HexValue);",
                    ActiveConnection))
                {
                    cmd.Parameters.AddWithValue("@PacketSequenceID", (int)key);
                    cmd.Parameters.AddWithValue("@Property", propertyName);
                    cmd.Parameters.AddWithValue("@PropertyType", propertyType);
                    cmd.Parameters.AddWithValue("@Value", value);
                    cmd.Parameters.AddWithValue("@HexValue", hexValue);
                    cmd.ExecuteNonQuery();
                }
            }

        }
    }