You could update these related entities with the WCF Plain Service generated by the OpenAccess ORM Add OpenAccess Service wizard by specifying a custom Assemble methods for populating all of the navigation properties of your parent entity (the SysAnvandare one).
In this way when you update or get a SysAnvandare object, all of its child objects will be also properly updated in the same transaction without implementing any additional methods.
In order to achieve that you need to create a partial class of your SysAnvandareAssembler and override the Assemble method for converting a Entity to Dto like below:
' Get all of the navigation properties along with the DTO
Then in order to update all of the entities with the same service call you need also to overload the Assemble method which is converting the DTO to Entity.
The implementation of this method is depending on your tables relationships (1:1, 1:M or M:M) and for your convenience I prepared a sample application demonstrating this approach based on the Products table of the Northwind database - please find it attached.
In the example you could find how to get and update all of the product related entities (its OrderDetails collection, Supplier and Category) with only one service call - please find the applied changes in the ProductAssembler.partial.vb file. Also there is a sample example of the service usage in the ServiceConsumer application.
You could find more information about handling relationships in the WCF Plain services in this documentation section
. Also you could take a look at the article describing the transactions handling
by OpenAccess ORM.
I hope this is applicable for you. Do not hesitate to contact us back if you need any further clarifications.
the Telerik team