Assembly Dependencies Question

Feb 12, 2008 at 7:25 PM
I'm writing a service that will query a database and return data in the form of a collection of a Data Contract type.

Problem is, what I'm seeing when I look at the solution structure is that the BusinessLogic sees Entities and Data Access, but NOT Data Contracts. If I want my Business Logic to perform some manipulation of the input criteria, call the data access to retrieve a data set, and then populate the data contract entity list, shouldn't the businessLogic also be using the DataContracts Project?

Feb 13, 2008 at 5:19 PM
Edited Feb 13, 2008 at 5:34 PM
You should call business logic and make tranformation between Business Entities and Data Contracts on the Service Implementation, coding on a partial class of the generated code and overring the operation implementation, there are recipts for creating the tranlators, take a look to ths Service Software factory HoL, sepcialy to the "Exercise 8: Translating to and from Messages"