The layer of data and service

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 năm cách đây
Hi,

I am learning code these days and I have 2 questions.

1. I found the linqs are coded in service layer, why we dont separate the data and business layer?
2. I cant see raw sql in project, what will we do if we have some raw sql? code in service layer?

Please advise.

Many thanks.
6 năm cách đây
Much of the business layer logic is done in the Controllers  (as well as the Services).

nopCommerce uses Entity Framework.  LINQ is used to do the queries.  'raw sql' can be done if needed, but using LINQ is preferred.
6 năm cách đây
Thanks, understood. :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.