Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access classes in another assembly
Message
General information
Forum:
ASP.NET
Category:
Windows Communication Foundation (WCF)
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01596007
Message ID:
01596086
Views:
47
>If i do that I might as well access the classes directly.

That would depend on how much other stuff is in the assembly where the classes are defined - a lot of that would just be cluttering up the client side.
I usually keep 'model' classes (and interfaces) in a separate assembly. It's not just a WCF thing - there's often a need share those classes between assemblies that should have no dependency on each other.

>I'm struggling to see the point of WCF for basic data access - maybe that's not what its for ?

Basic data access ? No. Pushing stuff over the wire using varied protocols to any client - Yes

> Found one gotcha today, if any of your classes in the service have code in the constructor it doesn't fire on the client side, you have to write a partial class with a constructor on the client.

I think that relates to the requirement for a parameterless constructor ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform