Linq To SQL Attach/Refresh Entity Object

前端 未结 2 609
梦如初夏
梦如初夏 2021-01-02 03:56

In Linq To Sql, when updating one of my entities, Faculty, I am creating a new instance of the Faculty object, then initializing some of the properties with values

2条回答
  •  没有蜡笔的小新
    2021-01-02 04:35

    What about retrieving the object from the database, then changing the appropriate values, then submitting the update?

提交回复
热议问题