Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要一些能够达到将存储过程的文本传递给 SQL Server 然后执行它的类似效果的东西?
例如设置 identity_insert 然后插入一个值
你的意思是这样的?
context.Database.ExecuteSqlCommand("INSERT INTO....");
如果您愿意,这可以采用多个命令。