Static DataService class vs. IRepository<T> ?

Posted by msfanboy on Stack Overflow See other posts from Stack Overflow or by msfanboy
Published on 2010-05-10T18:28:59Z Indexed on 2010/05/10 18:34 UTC
Read the original article Hit count: 291

Filed under:
|
|
|

Hello,

I am just studying the code of Sacha Barbers MVVM framework Chinch and I saw this in the xxxViewModel.cs file:

DataService.FetchAllOrders(CurrentCustomer.CustomerId.DataValue);

DataService is a Static class. Being a junior dev I am only used to Interfaces with Data services. Why is that class static?

Or do you think he made it just for the example?

So is that a good approach?

© Stack Overflow or respective owner

Related posts about data

Related posts about Services