Product Tour
     Back to Olero Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 Next Close Window    

 

Step 12 - Insert Data using ORM.NET

Inserting, updating, and/or deleting related table information is is easy using ORM.NET.

DataManager generates a New[Object] method for each table object. In this example, the FirstName column Property was defined as Required within the Object Browser.Therefore, a value must be passed into the NewTeacher method.
Create a Parent Object Contact in addition to the new Teacher. ORM.NET maps the relationships within your database schema as related objects.
The CommitAll method generates the correct SQL statements and performs the data operations in one trip to your database. All table relationships will be automatically enforced.
CommitAll performs all updates, inserts and deletes with a SQL Transaction to ensure data integrity.