Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> GetEntityTypeFilter()
 

Pages: 1
LLBLGen Pro Runtime Framework
GetEntityTypeFilter()
Page:1/1 

  Print all messages in this thread  
Poster Message
simmotech
User



Location:

Joined on:
01-Feb-2006 15:43:00
Posted:
1006 posts
# Posted on: 28-Mar-2019 08:19:43.  
LLBLGen v4.2

I have a Target per entity hierarchy with Book (B) being one of the subtypes.
It has two subtypes of its own - TextBook (TB) and EBook (EB).

I have a working dynamic query but I now want to filter for Books only - not TextBook nor EBook but of course GetEntityTypeFilter() returns a filter with all three values.

I understand the IS-A relation from an entity point of view (all 3 ARE Books) but is there better way I have missed rather than using a hard-coded value in a filter? ( ".Type == "B")



  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14480 posts
# Posted on: 28-Mar-2019 20:07:22.  
Why don't you filter out unwanted subTypes (TextBook & EBook)?
Using negation like … PredicateExpression.AddNot()


  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.