Hello, I would like to have a class like this :
- persisted : so inherits from So I have the following issue : a class could not be Question : why your class thanks. Maurice. nb : I use version 4.3.5 |
Have you look at installed ADO.NET Data Services (Astoria) Sample Solution ? If you use ADO.NET Data Services you can use your model against WCF. In fact client makes proxy classes to communicate through WCF with server side. But if you need pure WCF service with your own methods, you must work in another way. One solution is to create DTO classes and map DO entity classes with these DTO classes using O2O mapper (using MappingBuilder class). And on client side, you use these DTO classes, on server side you execute normal DO4 linq query, and result transform into DTO classes using Mapper.Transform. 1
I create diagram to one solution which could be made to satisfied some WCF requirements. I also have some hard-coded working sample of this, but it is strongly applicable only on my own project (strong project references and other things), not general reusable. But can help if you need help. Great diagram. Yes, that's another good alternative. |
We use That's intended usage of this feature:
Note that if another
So you can't send Entities via WCF directly. The fact they're marked as serializable does not enable this - the purpose of this is different. To send them via WCF, you can:
Hopefully, I just provided full answer to this question. |