我试图在db中创建一个具有预定义主键值的记录.我知道如何用sql做这个,但我想知道EF是否可以为我做这个?否则,我将不得不为插入创建存储过程.
entity-framework identity-insert
entity-framework ×1
identity-insert ×1