Building data model dynamically by DB meta-information

You can avoid creating a data model XML file through Data Model Editor utility and fill your model right in the code directly from your database (or more precisely: by its meta-info).

To perform this task, you just need to create an appropriate instance of DbGate class (depending on DB and connection type you use), connect it to your database and call FillByDbGate() method of DbModel.

Please note: To create some DbGate object (like SqlClientGate) will need to add a corresponding assembly into the “References” section of your project. For exampl, to execute the code listed above you will need to reference Korzh.EasyQuery.DataGates.NET40.dll assembly.

We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies.