Entity mapped toTable vs View

Posts   
 
    
DarkRoast
User
Posts: 42
Joined: 14-Jul-2010
# Posted on: 12-Mar-2011 19:00:29   

Is there a way to determine if an Entity is mapped to a table vs a view?

I've looked through the entity and field properties but I don't see that info yet.

This would be for 3.1 Self Servicing.

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 13-Mar-2011 14:46:23   

At runtime you mean? No that info isn't available in the mappings. Could you elaborate why you'd need this? (as you can add an include template to the entity template to emit this info into the generated code, but that can be done at several places, so it's better if we know what you want to achieve)

Frans Bouma | Lead developer LLBLGen Pro
DarkRoast
User
Posts: 42
Joined: 14-Jul-2010
# Posted on: 14-Mar-2011 16:20:56   

Yeah, at runtime. I have a basic DB Editor for the mapped entities, and wanted to display an indicator for table vs view. I'll probably just query the information schema view to get the info in this case.