Base solution for your next web application
Open Closed

Main QUery filter selected #9993


User avatar
0
rcasaca created
  • What is your product version?
    • 10.0.0
  • What is your product type (Angular or MVC)?
    • MVC
  • What is product framework type (.net framework or .net core)?
    • .net core

Hi, I'm trying to built an "global filter", like a scope, to filter all my queries on entities that depends on it. Mix between Tenant and Localization.

I've already have the selection. It will store the value in Settings entity, using SettingManager.

My questions are:

  • What is the best approach to get the setting value and add it to my Session?
  • Also, and how can i apply it in all my queries?
    • I'll need inherit all my class Entities from Interface IMayHaveProject and/or IMustHaveProject that must be created?

Thanks in advance.


1 Answer(s)