你的contract字段是否为bool?
或者将  myCommand.Parameters["@Contract"].Value = 1;试试。