I have created a class library and enabled for open access by ticking DAL only(classLib1).
I have created another class library and enabled for open access by ticking
Persistent classes (classLib2)
in the second case i found it creates business objects. Well
business objects have all properties. But i can’t find any function there.
I am expecting some basic functions code to be there.
For example if I have a table called Product, I will also have a business object as Product.
I am expecting some function in the product class in classLib2
like getAllproduct()
update(anObjofProduct)
insert(anObjofProduct)
All the functions should call its corresponding function in DAL
These functions are also expected to be written there in DAL.
My question is that do OpenAccess ORM writes at lest such basic function for us?
The OpenAccess approach is a bit different from what you have expected but I am sure you will find it even simpler to use. The most important thing you have to know is that all objects are managed through a class named ObjectScope. It takes care of reading/storing objects and tracking their changes. You can find more detailed information about dealing with objects in this article. I believe our Knowledge base section will be helpful to you as well as our Code library which contains many demo applications.