This question is locked. New answers and comments are not allowed.
Hi,
We have a database in which certain tables will have their amount of columns change occasionally. Is there any way for us to use OpenAccess to get the current DB schema at runtime so that we know what artificial properties to create?
Thanks
Ash
We have a database in which certain tables will have their amount of columns change occasionally. Is there any way for us to use OpenAccess to get the current DB schema at runtime so that we know what artificial properties to create?
Thanks
Ash
4 Answers, 1 is accepted
0
Accepted
Hi Ashley,
Greetings,
Damyan Bogoev
the Telerik team
I have prepared a sample application which demonstrates how to use the OpenAccess ORM Schema Reading API to obtain the needed information from the database.
You could filter the schemas and the relational items to be read from the database using the SchemaReadParameters instance. The ISchemaReader.GetSchema(parameters) method populate a MetadataContainer based on the obtained schema.
Hope that helps.
Damyan Bogoev
the Telerik team
OpenAccess ORM Q1 2013 is out featuring Multi-Diagrams, Persistent Data Stream Support and much more. Check out all of the latest highlights.
0
0
Hello Ashley,
Damyan Bogoev
the Telerik team
I am afraid this feature is not documented yet. We will consider as a future improvement in the product's documentation.
Should you have any other questions, do not hesitate to contact us back.
Damyan Bogoev
the Telerik team
OpenAccess ORM Q1 2013 is out featuring Multi-Diagrams, Persistent Data Stream Support and much more. Check out all of the latest highlights.
0
Ashley
Top achievements
Rank 1
answered on 12 Mar 2013, 12:22 PM
Thanks again for the quick feedback Damyan.