When I am trying to upgrade the target frame work from 2.0 into 3.1 , the following statement are not being worked everywhere where have been used.
dbcontext.Database.ExecuteSqlCommand("dbo.insertstoredprocedure") . Please can you help me how can I fix this issue. it is working 2.0 target frame work
Member
400 Points
1295 Posts
dbcontext.Database.ExecuteSqlCommand is not working in target frame work 3.1
Dec 28, 2020 07:49 AM|polachan|LINK
When I am trying to upgrade the target frame work from 2.0 into 3.1 , the following statement are not being worked everywhere where have been used.
dbcontext.Database.ExecuteSqlCommand("dbo.insertstoredprocedure") . Please can you help me how can I fix this issue. it is working 2.0 target frame work
All-Star
48320 Points
18012 Posts
Re: dbcontext.Database.ExecuteSqlCommand is not working in target frame work 3.1
Dec 28, 2020 09:44 AM|PatriceSc|LINK
Hi,
Always tell what happens rather than just that "it doesn't work". I would expect a compile time message telling it is obsolete:
RelationalDatabaseFacadeExtensions.ExecuteSqlCommand Method (Microsoft.EntityFrameworkCore) | Microsoft Docs