Question about NopObjectContext

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hello,
I'm looking through NopCommerce solution (3.7) and I noticed that NopObjectContext in Nop.Data has NO properties like

public DbSet<Customer> Customers { get; set; }
public DbSet<Product> Products { get; set; }
...

AFAIK in Entity Framework projects (code-first, database-first) usually DbContext properties are mapped to database tables.

I wonder what is the approach taken in NopCommerce

Regards,
Albert
6 years ago
nopCommerce has another layer of extraction, that is the Repository. Since you have the source code, just look at how other repositories are coded. :)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.