Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access classes in another assembly
Message
Information générale
Forum:
ASP.NET
Catégorie:
Windows Communication Foundation (WCF)
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01596007
Message ID:
01596084
Vues:
47
To Viv and Mike

I could but I want everything wrapped in the service, which I somehow have managed , when you add a service reference to your client you can opt to generate classes for your referenced assemblies in your proxy classes and as long as they are declared public and used in your service they are exposed. I found this out the hard way, I had four classes in my DAL ( this is a dummy project while I'm learning ) Employee, Department, Gender and Addresses all declared public but when I added the service reference the proxy only contained definitions for two of them - after some head scratching I noticed the two that were missing were not used in my service ( but I needed them in my client ) so I wrote some stuff referencing them and Voila there they were - I suppose it makes sense, why generate code for nothing ? I hope I get a job soon I haven't worked this hard in years ;-)
Regards,
Peter J. Kane



Pete
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform