Primary key data doesn't match submitted data - Composite Key

Primary key data doesn't match submitted data - Composite Key

andreaduffandreaduff Posts: 3Questions: 0Answers: 0

Try as we might, we keep getting this response from the editor.
Any suggestions?
Thanks

**Primary key data doesn't match submitted data.
**
[HttpPost]
public ActionResult SolutionsUpdate()
{

        string connectionString = ConfigurationManager.ConnectionStrings["csApaTascSql01_TASC_QA"].ConnectionString;
        var formData = HttpContext.Request.Form;

        using (var db = new DataTables.Database("sqlserver", connectionString))
        {
            var response = new Editor(db, "PbsAwardsSolution", new[] { "EffectivePeriod", "VersionNbr" })
                .Model<SolutionModel>()
                .Process(formData)
                .Debug(true)
                .Data();


            return Json(response, JsonRequestBehavior.AllowGet);
        }
    }


    public class SolutionModel
    {
        public int EffectivePeriod { get; set; }
        public int VersionNbr { get; set; }
        public string FileName { get; set; }
        public bool IsProduction { get; set; }
        public string Description { get; set; }
        public string BidStartDate { get; set; }
    }

Replies

  • andreaduffandreaduff Posts: 3Questions: 0Answers: 0

    Here's the form data posted:

  • andreaduffandreaduff Posts: 3Questions: 0Answers: 0

    And the form data:

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi - we've exchanged a couple of e-mails about this. I'll update the post here when we come to a conclusion there.

    Allan

This discussion has been closed.