Category Archives: 15143

WCF RIA Services: conflict resolution

With Entity Framework, you can use default behavior to solve concurrent access: last writes wins. You can also choose that EF throws an exception if DB has been changed by another user. With RIA Services, if you choose this second … Continue reading

Posted in 15143, 7671, 7674 | Leave a comment

WCF RIA Services: don’t forget EF best practices!

To include related entities, we need to add Include attribute in metadata. (Thanks Audrey :)) Then we can use something like this: public IQueryable<Customer> GetCustomers() {     return this.ObjectContext.Customers; } public IQueryable<Customer> GetCustomersWithOrders() {     return this.ObjectContext.Customers.Include("Orders"); } However, as I explained in a … Continue reading

Posted in 15143, 7671, 7674 | Leave a comment