TotalEntitiesCount

There are 1 entries for the tag TotalEntitiesCount
WCF RIA Services and TotalEntitiesCount=-1

If you do serious WCF RIA Services development you’ll probably end up with something like this: using System.Linq;using System.ServiceModel.DomainServices.Hosting;using System.ServiceModel.DomainServices.Server;[EnableClientAccess()]public class NorthwindService : DomainService{ private readonly NorthwindEntities datacontext = new NorthwindEntities(); [Query] public IQueryable<Customers> GetCustomers() { return this.datacontext.Customers; }} where code that interacts with data store is separated in a separate NortwindEntities class (maybe just because we use NHybernate as favorite ORM…). Everything works as expected...

posted @ lunedì 31 gennaio 2011 08:47 | Feedback (0)