0
Hasan created
Dear Team,
We are going to use Data Filter as per the document <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Data-Filters">http://www.aspnetboilerplate.com/Pages/ ... ta-Filters</a>
I would like to read and set the DataFilter Parameter from the Session. The value will be set on two places
- USER LOGIN TO THE APPLICATION
- CHANGE THE VALUE FROM THE COMBO BOX WHICH HAS BEEN ON THE TOP OF THE PAGE.
I have configured ONMODELCREATING as per the DOCUMENT
modelBuilder.Filter("ConnectFilter", (IConnectFilter entity, int companyId) => entity.CompanyId == companyId, 0);
The document which you have given has not addressed how to set it automatically from the SESSION and also WHEN USER LOGIN TO THE APPLICATION?
1 Answer(s)
-
0
Hi Hasan,
You can check this forum topic, it is almost the same case. #2428@570793a7-71cc-490f-8e5f-db9f0e2ef644