DEV Community

Hassan Bazuhair
Hassan Bazuhair

Posted on

1 1

Should I use SQL Views With ORM frameworks?

I want to Ask, Is it good to use SQL View with ORMs Like Entity framework? And Why?

Top comments (1)

Collapse
 
rramname profile image
Rohit Ramname

Absolutely. View without built in filters is always a good idea over directly referencing tables especially with EF. This way we dont have to worry about table changes like adding non null column (This could bite us in case of inserts with direct table references).

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay