Linq to sql, copy original entity to new one and save

前端 未结 6 1570
失恋的感觉
失恋的感觉 2020-12-16 10:51

I have a situation when I cant just update original record in database, but instead make a new record, copy all fields from old and apply changes to new one. (something like

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 11:42

    You may also want to look into PLINQO. It has the ability to clone, detach, attach, serialize to xml, serialize to binary, many to many relationships, etc... all right out of the box so you don't have to deal with these features that should've been included in the first place.

    http://www.plinqo.com/

提交回复
热议问题