嗨,我正在使用实体框架 4.3。
我有一个表“Notes”,其中NoteId是主键(数据类型是 int)。我通过使用存储过程为 NoteId 生成了这样的值..
notes.NoteId = (int)dbContext.GeneratePrimaryKey("Notes");
当我将数据插入到表“ Notes ”中时,它会引发空值无法插入到 noteid 中。但是noteid是生成的。
谁能帮我解决这个问题....
嗨,我正在使用实体框架 4.3。
我有一个表“Notes”,其中NoteId是主键(数据类型是 int)。我通过使用存储过程为 NoteId 生成了这样的值..
notes.NoteId = (int)dbContext.GeneratePrimaryKey("Notes");
当我将数据插入到表“ Notes ”中时,它会引发空值无法插入到 noteid 中。但是noteid是生成的。
谁能帮我解决这个问题....