0

While researching about the clean architecture of .NET Core, I understand that only Entity Framework is being used.

I wanted to know whether we can use raw SQL queries by making a connection to SQL with connection strings.

2
  • Possible duplicate of Is ADO.NET in .NET Core possible? Commented Mar 4, 2019 at 7:00
  • You can use datareader, dataset and dataadapter as in system.data assembly or extension assembly based on .Net Core version Commented Mar 4, 2019 at 7:02

1 Answer 1

2

Clean architecture doesn't restricts you to entity frame work. You can also look into micro ORM e.g. Dapper which can be used to write sql queries. It's very powerful and gives you many out of box capabilities e.g. mapping. Infact if you don't want full ORM functionality Dapper is recommended in Microsoft docs.

Dapper

Dapper for read queries

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.