Questions tagged [domain-service-class]
12 questions
45
votes
1 answer
What is the service class in programming?
I always see some classes that is named "ClassNameService", well what is the difference as logic? What is the goal of these service classes?

sopehl
- 1,067
- 1
- 13
- 18
4
votes
3 answers
Which layer should be used for user authentication
I'm tying to use Domain Driven Design in one of my applications and have some question about user authentication.
I have an aggregate root called User which has Value Objects like UserCredentials, Password, ActivationToken, etc.
I also have few…

Mad Max
- 186
- 2
- 11
3
votes
3 answers
WCF Ria Services Wizard not working with CodeFirst
When using EF Code First, It appears WCF RIA Services Wizard (that runs when adding a new DomainService) in VS 2012 does not recognize the DbContexts defined in the project (it only recognizes the ObjectContext).
This means that when Adding a…

Bathla
- 125
- 9
3
votes
1 answer
How to use the dbGeography spacial data type of EFv5 with a WCF RIA domain service class
I am using EFv5 which now has the geography data type. So i have an entity called Place and it has a property called geoLocation that is of type geography. VS 2012 has automatically created the code for this entity and the property type for this…

lymberazo
- 453
- 6
- 13
2
votes
1 answer
Models, Repositories, Service classes & Jobs (commands)
I need some help in understanding what part each play in a large application. I'll start first with a scenario:
as usual there will be User
an user must have a MembershipType (free, basic, business).
an user can have (not required) a Business…

Cristian
- 2,390
- 6
- 27
- 40
0
votes
2 answers
overriding RIA DomianService code generation
I need to insert a common set of code in Get method of all the entities generated by the RIA Domain Service wizard. Is it possible to override Domain Service wizard's code generation so I can insert that code automatically?
Thanks,
Ankur

user559788
- 303
- 2
- 13
0
votes
1 answer
DDD - Can an aggregate method with an aggregate parameter block an action based on that aggregate parameter's state?
Imagine two aggregates Product and Order. An Order instance can have multiple Products as order line items and this association is done using an OrderLine class.
Here are the classes:
public class Order {
.
.
Set orderLines;…

Amirhosein Al
- 470
- 6
- 18
0
votes
1 answer
Custom RIA Domain Service not based on an ADO.NET entity
All of my data can be accessed only through a COM object created like so:
Interaction.CreateObject("MyObject.Application","RemoteServer");
I have a bunch of APIs that I can use to query this object. I have very little experience in…

nosirrahcd
- 1,467
- 3
- 18
- 36
0
votes
1 answer
How to formulate join queries in domain service class?
in the domain service class there are two entities which I would like to use in join query: WorkerOnMachine {id(int), WorkerId(int), MachineId(int)} and Worker(WorkerId(int), Name(string)...)
I wanted to create a method in domain service class which…

Niko Gamulin
- 66,025
- 95
- 221
- 286
0
votes
0 answers
Unit Testing Service Layer in Spring Boot
I have a service layer (Code Below:)
@Service
public class EquityFeedsService {
@Autowired
private EquityFeedsRedisRepositoryImpl equityFeedsRedisRepositoryImpl;
public void save(EquityFeeds equityFeeds) {
logger.info("Inside…

sidd
- 195
- 3
- 20
0
votes
1 answer
How do I access the data from my domain service in my view model ? Silverlight 5 application
I am a beginner in Silverlight and I just started to get used to it, but now I have a problem. In my StudentDomainService I have this method that returns all of my students:
public IEnumerable GetStudents()
{
return…

Ioana
- 23
- 6
0
votes
1 answer
SendEmail method in Member service?
I have a requirement to send daily emails to members of the system. I would like to know if SendMail method should be in MemberService or should I create separate service class for this?
Appreciate any help.
Thanks
APL

APL
- 157
- 1
- 6