using (OleDbCommand cmd = Connection.CreateCommand())
{
cmd.CommandText =
"DELETE FROM DataBase WHERE Code = @code";
// add named parameters
cmd.Parameters.AddRange(new OleDbParameter[]
{
new OleDbParameter("@code", code1)
});
// execute
cmd.ExecuteNonQuery();
}
private float x = 0;
private bool b = false;
public float X
{
get { return x; }
set { b = value != x; x = value; }
}