I have a Silverlight application, a WCF service with a class library with ActiveRecord entities
I need to load a list of entities from the class library in the WCF service and send it to the Silverlight application
- How do I initialise ActiveRecordStarter in service and establish connection to DB?
- How do I provide ar:sessionScope?
- How do I do lazy loads?
Thank开发者_高级运维s for any help and any code
You should not try to send your entities through WCF service.
Create dedicated data contract and map your entities to that contract.
Then you can use AR like in any other kind of application.
You could use custom IParameterInspector
to open and close session scope if you're not using Windsor.
精彩评论