LLBLGen Pro v2.5; Adapter (with WebServiceHelper); vs2005 c# solution (.Net 2.0), WinForms client.
I have followed your instructions on using the SchemaImporter project, registering the assembly in the GAC, and modifying machine.config. In the WinForms project, I have a reference to the DatabaseGeneric project. In the WebService project I have references to both the DatabaseGeneric and the DBSpecific projects.
Everything compiles ok, but I have two problems with consuming the WebService in the WinForms project:
-
When the webservice returns a collection, it returns a collection of type '<WebService>.EntityCollection', rather than '<DatabaseGeneric>.EntityCollection'.
-
When the webservice returns an entity, it returns an XmlElement rather than an LLBLGen Entity (clearly visible in the Reference.cs file).
I can manually modify the Reference.cs file (in the WinForms project, under the WebService reference) to return the correct datatypes, but I thought that the whole idea of the SchemaImporter shenanigans was to overcome this? And of course, every time you choose 'Update Web Reference' after adding new methods to the WebService, you have to manually fix the resulting Reference.cs file again.
Am I misunderstanding something, or have I left out a crucial step?