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();
}
}
}
}