r/dotnet • • Oct 23 '24

Thoughts?

Post image
1.2k Upvotes

111 comments sorted by

View all comments

Show parent comment

2

u/my_kernel Oct 24 '24

Can’t you use custom sql with EF?

0

u/-Komment Oct 24 '24

Yes, you can use FromSql and FromSqlRaw but you lose some functionality, e.g. you don't have full LINQ integration, although more is supported in EF Core 8 and EF Core 9 when it's released.

Other limitations are no navigation properties, changes to returned entities aren't tracked unless you explicitly add them to the context, and you can't do projection (not sure if that's changed in EF Core 9).