Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

DATAFILTER - ASP.net ZERO #2498


User avatar
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

  1. USER LOGIN TO THE APPLICATION
  2. 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)