A referential integrity constraint violation occurred

前端 未结 6 1178
有刺的猬
有刺的猬 2021-01-18 04:54

I\'m trying to update an existing entity.

I have the following code:

public MamConfiguration_V1 Save(MamConfiguration_V1 item)
{
    mMaMDBEntities.M         


        
6条回答
  •  礼貌的吻别
    2021-01-18 05:36

    This might be an old post but the following worked for me

    set the SaveOptions option to SaveOptions.DetectChangesBeforeSave

提交回复
热议问题