How to open objects through WCF?

My project is broken down into a typical three-layer structure for a Silverlight application. I.e:

  • The basic level, which is a class library that contains all my business objects, logic, data access, etc.
  • The middle tier, which is the WCF service that contacts;
  • My Silverlight Interface

The problem is that currently BO, opened through WCF for my interface, contains only private variables and none of the properties or methods.

Is there an easy way to open a complete object (via attributes or configuration)?

What is the best solution?

+3
source share
4 answers

, , WCF, DataContracts .NET ( Silverlight). WCF . , DataContract, - . undestanding WCF, WCF: Michele Bustamente.

@John Fisher .NET , , Silverlight. , REST Silverlight.

+8

, [DataContract], [DataMember] . .

+2

- , DLL " ", , . ( dll , ) . . , , .

+1

Sixto . WCF BO DLL ( WCF ), . , BO .NET, silverlight.

, , :

  • - , WCF, , .
  • - . .
  • - () - - ,
  • - WCF,
  • Silverlight - refers to the Service

If you moved your business logic to your project and simply referenced your common “dumb” objects, then you could probably create two logical projects, one silver and one standard, and just have the actual files in one and create links to these files are in another. Thus, you will have the same logic for both projects, and it will exist both in Silverlight and in standard .NET.

+1
source

Source: https://habr.com/ru/post/1698087/


All Articles