In DObject O/R Mapping persistence layer, it's simple to insert an object: just create a new entity object and assign its properties, then Save it as the following sample:
|
var customer : ICustomer; begin customer := TCustomer.Create(ObjectManager); customer.CustomerID := 'ATEST'; customer.CompanyName := 'Macrobject Software'; customer.Country := ' customer.City := ' customer.Save; end; |
Related Topics