Wednesday, May 23, 2018

How NDO Works » Persistent Classes

Register  Login


 Persistent Classes  


Step 1 - Write Classes

Write ordinary classes of your problem domain, like Customer or Order. Relations with a cardinality of n will be implemented as ArrayList or List<T>.

Step 2 - Mark Your Classes as Persistent

Use the Attribute [NDOPersistent] to mark classes as persistent. For relations  use the Attribute [NDORelation]. NDO helps you insert the right attributes. With a mouse click you can easily create persistent classes and relations.


Step 3 - Generate the Database

Activate the NDO Add-in using the Configuration Dialog in Visual Studio. NDO Configuration also allows you to create databases and enter data connection strings. SQL DDL scripts are created automatically and can be used to create or change a database according to your object model. The database structure created by NDO is easy to read and can be used by external tools like report generators.