Creating the Client Application

In your client you use the following code:

using System;

using System.Collections;

using BusinessClasses;

using NDO;

namespace TestApp


    class Class1



        static void Main(string[] args)


            Employee e = new Employee();

            e.FirstName = "Scott";

            e.LastName = "Lion";

            Address a = new Address();

            a.CountryCode = "USA";

            a.Zip = "CA 94065";

            a.Street = "501 NDO Parkway";

            a.City = "Redwood Shores";

            e.Address = a;

            PersistenceManager pm = new PersistenceManager();







The objects Employee and Address are created as expected in object oriented programming. With the help of the property Address, the address is attached to the employee object. After that the Employee object is made persistent. The call to Save() stores both objects into the database.