inheritance - Receive class inherited from WCF Service when KnownType Class is in another project? -


i need receive class inherited through wcf service.

<datacontract()> <knowntype(gettype(a))> public class base ... end class  <datacontract()> public class inherits base ... end class 

the problem class in business logic project , references base class in project (util project). can't do:

<knowntype(gettype(a))> 

in base class because need add reference business logic project util project know class a, throws cyclic reference error.

and well, wcf project references business logic project send data.

well, created class called 'pack' in business logic project , extends base in util project, 'pack class' can know class in business logic project , 'a class' extends 'pack class', , 'pack class' 1 send through wcf services.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -