.net 4.0 - How to do server side pre filtering with Entity Framework and Dynamic Data? -
I use unit framework 4.0 and prefilter all queries using TennantId. I have modified the T4 template to add all the objects to the pre-filter and it works for the "regular" portion of the application.
Public object sets & lt; Category & gt; Categories {get {if ((_Categories == faucet)} {_Categories = base.CreateObjectSet & lt; Category & gt; ("Categories"); _Categories = _Categories.Where ("this. TanantId = 10"); } Return _Categories; }}
The problem I have is that ASP .NET dynamic data does not call these methods and goes straight to Extent I can not override.
Is there a way to prefilend data in this scenario?
You can set a status for each unit in your Adam And EF will automatically add that status to the "ou" section of all those questions
View my replies that may help you.
Comments
Post a Comment