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 @ Monday, January 31, 2011 7:47 AM | Feedback (0)