Questions tagged [domainservices]

Domain services are Windows Communication Foundation (WCF) services that encapsulate the business logic of a WCF RIA Services application. A domain service exposes a set of related operations in the form of a service layer. When you define a domain service, you specify the data operations that are permitted through the domain service.

When designing a domain service, you should think of the domain service as a set of related tasks that you expect users to perform in your application. Typically, such tasks involve a small group of closely-related entities. For example, in an expense reporting application, you might expose entities for expense reports, line items, and details. You might, then, place entities for accounts and payments in a separate domain service.

180 questions
2
votes
2 answers

ria domain service is setting a client-side property on callback

I'm using RIA domain services, with entity framework 4 and silverlight 4. When I save changes, when the service call returns, some domain service functions are called wich sets a value to "" that should not be changed at all. I have two…
2
votes
1 answer

WCF Domain Service (Silverlight RIA) and SharePoint Foundation 2010 BCS Integration

Would it be possible to use the Domain Service generated in a Silverlight 4 RIA and connect to it via an External Content Type in SharePoint 2010's BCS? I know that you do not get a WSDL file from the Service web page, but I am not sure that there…
Robert Kaucher
  • 1,841
  • 3
  • 22
  • 44
2
votes
3 answers

Problem referencing .Web project in Silverlight project

I'm trying to reference my domain service by following this documentation. The following two declarations work fine xmlns:riaControls = "clr-namespace:System.Windows.Controls; assembly=System.Windows.Controls.DomainServices" and xmlns:data =…
jpgamaral
  • 51
  • 1
  • 4
2
votes
4 answers

DDD: what methods should entity contain?

I have class that represents user authorization (scala code): case class Authorization( userId: UUID, permissions: Seq[String], userRoles: Seq[String], …
2
votes
1 answer

Silverlight Domain Service - How to have a single [Invoke] operation

I have a custom domain service with a single [Invoke] operation that returns a List of User objects. In order to get it to compile, I have to stump out the User object in a property (highlighted as 'DONOTUSE' below) or method outside of the…
J.C.
  • 2,102
  • 1
  • 19
  • 28
2
votes
3 answers

entity/ria include many to many

ok, I know this is asked a million times, but I still can't seem to find a working solution. Hopefully I'm just missing something. Using entity with silverlight, through RIA I have a many to many table structure in my DB. [System] - [SystemUsers]…
2
votes
1 answer

Best way to bind WCF DomainService data to a TreeView in Silverlight?

I've got a database structure similar to this: Items ID Name ParentItemFK (tasks & notes can have any item as a parent; categories can only have other categories as a parent) CategoryFK TaskFK NoteFK Categories ID Description…
Jon Onstott
  • 13,499
  • 16
  • 80
  • 133
2
votes
1 answer

LINQ over WCF Service (DomainService)

I have a simple DomainService: [EnableClientAccess] public class DomainService1 : IDomainService1 { [Query(IsComposable = true)] public IEnumerable GetCollection(int from, int count) { const int max = 100000; int[]…
JPo
  • 21
  • 1
2
votes
1 answer

How do I reduce the number of constructor parameters in controllers and business layer services?

This is a re-wording of this SO post. I found that using the mediator pattern is effective at reducing the number of parameters in my controllers. I then began to wonder if this would be affective domain services. But wouldn't that hide the…
drizzie
  • 3,351
  • 2
  • 27
  • 32
2
votes
3 answers

Is the callBack method called before the assignment or after here?

I have the code below which is basically calling a Domain Service in a SilverLight Application. LoadOperation loadOperation = _dataContext.Load(query,callBack, true); Can you tell me which operation is done first? Is the callBack method…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
2
votes
2 answers

ObservableCollection with ObservableCollections not rendering correctly

I am relatively new to the Silverlight experience and am trying to create a MVVM app with a DomainService that returns POCOs as the models. I have a UserControl that has a TreeView with the ItemsSource set to bind to an ObservableCollection of a…
2
votes
3 answers

What if domain event failed?

I am new to DDD. Now I was looking at the domain event. I am not sure if I understand this domain event correctly, but I am just thinking what will happen if domain event published failed? I have a case here. When a buyer order something from my…
2
votes
1 answer

ObjectSet and ResultSet on stored procedure on EF and Domain Service

In EF 4, the default ObjectSet is available for each entity. For example, I have table Employee, after gererated Entity Model, EF will create ObjectSet on Employee. Then when using wcf ria service, the default query will be like: public IQueryable…
KentZhou
  • 24,805
  • 41
  • 134
  • 200
2
votes
0 answers

DomainService in Visual Studio 2013 using OpenRiaServices

I'm developing Silverlight Applicaton, I used Visual Studio 2010 and Visual Studio 2012. I created DomainServices Class like this topic: http://www.c-sharpcorner.com/UploadFile/ff2f08/silverlight-application-with-ria-service/ But now, i'm using…
MasterLuV
  • 396
  • 1
  • 17
2
votes
1 answer

Domain Services controlling the granularity

I thought domain services should only represent domain concepts, but it seems we should also use them to control the granularity of domain layer interfaces ( which also prevents domain knowledge leaking into application layer ) and to decouple…
EdvRusj
  • 745
  • 7
  • 14
1
2
3
11 12