Are you saying your problem is that you don't have the type to reference in the client?
There are two ways of handling this-- if you just use the Employee item as a data transfer object between the data access layer and the service layer, then you should make another object that the service layer and the service client share as a data contract. Then, you turn the Employee object into that data contract object, and send it along.
If you don't want to do that, put the Employee class into its own project that can be referenced by all of the projects.
alc6379
Cookie... That's it
2,821 posts since Dec 2003
Reputation Points: 186
Solved Threads: 149
Skill Endorsements: 3
If you want to know how to return a list and not an array, it's in the configuration of the Service Reference. If you go to your list of Service References, then right click it and click Configure Service Reference, under the "Data Type" header you will see a drop down box next to "Collection Type". Set this to "System.Collections.Generic.List"
If this isn't what you're asking, I'm afraid you're going to have to clarify your question as I don't understand what you could be asking other than the above.
Ketsuekiame
Veteran Poster
1,195 posts since May 2010
Reputation Points: 553
Solved Threads: 153
Skill Endorsements: 9
Question Answered as of 1 Year Ago by
alc6379
and
Ketsuekiame