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: 49,501Questions: 1Answers: 7,286 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

Sign In or Register to comment.