Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining reference definition
Message
From
24/09/2010 22:27:32
 
 
To
All
General information
Forum:
ASP.NET
Category:
Class design
Title:
Obtaining reference definition
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01482682
Message ID:
01482682
Views:
96
How can we define a class in .NET which would be able to support a reference definition such as:
loDataSet.Tables("Temp")
Where loDataSet would be the object created from the class and Tables would be a property of the class but would accept an ID. Basically, I would like to be able to do something like:
llMandatory = oApp.oTable.Table("MyTableName").Field("MyFieldName").Mandatory
So, at initialization, I would read all my tables and populate them into the object. And, for each table, I would do a SQL into the field table to get all the fields with their property.

Presently, I read the data dictionary on request. I would like to load it all into an object at startup. My data dictionary has a Table table and a Field table to serve the purpose. The Table table contains some fields which define the table properties. The Field table contains x amount of records for each Table with about 200 fields so the framework knows how to deal with them.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform