Dynamically Loading Typed Views at runtime

Posts   
 
    
Niles
User
Posts: 1
Joined: 06-Nov-2005
# Posted on: 06-Nov-2005 01:54:50   

I am trying to create a small application for exporting typed views from a database.

How do I go about doing the following at runtime? - retrieve the names of the typed views in a database - create a TypedView Object with just the name of the view

I am new here so if this has been answered before could you please point me to the right place. Thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 07-Nov-2005 22:20:40   

You can't create a typedview at runtime, as it's a type, so it has to be created at compile time, thus be generated into your code. You can fetch the data into a datatable, using a dynamic list, but not a typed view. What's the scenario you need it for, so I can perhaps suggest other options?

Frans Bouma | Lead developer LLBLGen Pro