【发布时间】:2017-08-21 17:33:25
【问题描述】:
我有两张桌子
-
Chapters_tbl(儿童 ID、姓名) -
Status_tbl(chID, Ch_status)
对于Chapters_tbl 中的每个chID,我想将chID 插入到Status_tbl 和Ch_status 中
我可以在 C# 中使用 SQL Server 存储过程或实体框架。
我该怎么做?
【问题讨论】:
-
Microsoft 的文档展示了如何同时使用 EF 和 SQL 来执行插入操作; this article 专门讲了如何使用 map EF 调用到存储过程中。
标签: sql-server entity-framework stored-procedures