ria-services

Change when a RIA Services DataForm sends changes to the backing object

DataForms seem to update their CurrentItem as soon as the user tabs out of a field. This happens even when AutoCommit = false. The side effect of that behavior is that other controls that are bound to the data update while the user edits data instead of when the user clicks Ok to accept the DataForm changes. Is there a way to modify t...

10th call of .net RIA service fails with 'Login failed for user...'

I get this error only after 9 successful calls to same .net RIA service. System.Windows.Ria.Data.EntityOperationException: Login failed for user... The .net RIA service has NO EntityOperation methods, only the one ServiceOperation which returns an XElement. ...

.NET RIA Services and Inheritance in EF

How i can use Inheritance in Entity Framework with .NET RIA Services? Problem: if there is inheritance in EF, silverlight application don't compiled. Can you help me? ...

C# Silverlight RIA Services - Context.Load() does not support loading of multiple queries?!?!

The Scenario Currently I have a c# silverlight business application. The application is hosted in Asp.net using the ADO.Net entity framework and a domain service class to read/write to/from my sql server database. The Setup Client UI In my silverlight client interface I have an autocomplete box which uses a query to get a list of ite...

DataLoadOptions.LoadWith problem

When using DataLoadOptions.LoadWith with ria services hooked up to a linq to sql model do i always have to specify the [Include] attribute in the entitys metadata class for relationships? I currently dont use metadata for my entities and if theres a way to achieve this without i would be grateful to know. ...

C# Silverlight - Getting Data Out Over The Wire Without Foreach & GetEnumerator()

Background Currently I have a C# Silverlight business application which uses RIA Services. The application is hosted in ASP.NET using the ADO.NET Entity Framework and a domain service class to read and write to the SQL Server database. Since the RIA class doesn't support multiple JOINs between tables, it was therefore necessary to impl...

C# Silverlight with RIA Services Authentication

Hello! Does anyone have any good samples, resources, pointers etc. for C# Silverlight with RIA Services basic authentication or Roles?! All of the tutorials I've checked out aren't too great.... help appreciated greatly. cheers ...

How does the .Net RIA Services keep track of the logged in user?

I have been reading up on the .Net RIA Services that Microsoft is developing for use between Asp.Net and Silverlight applications, and it looks quite nice. I am curious about how it handles keeping track of authentication: How does the Silverlight client keep track of who is logged in, and when they have timed out? And it shouldn't ke...

"Read-Only" Entity Framework? I'm trying to use RIA Services, EF, and Silverlight

I'm trying to present MySQL server data in a silverlight client and my current plan of attack is to use Entity Framework to MySQL with RIA Services providing the data access between the Silverlight Client and Entity Framework. However, I'm only trying to present data to the user and I do not want the possibility of me or someone else be...

Need help debugging: Having trouble getting data to Silverlight App through RIA Services, Entity Framework, MySQL

I'm trying to build a Silverlight App that accesses and presents data from a MySQL database. I'm trying to use Entity Framework to model the MySQL data and RIA Services to make the data via EF available to Silverlight. My Silverlight App is showing the correct columns in the datagrid, but it does not show the data (alternate link to im...

RIA Services and Inheritance in EF

Hello, I have the next EF diagram: Image and the code service: [EnableClientAccess()] public class DomainService1 : LinqToEntitiesDomainService<db1Entities1> { public IQueryable<Entity1> GetMaster1() { return this.Context.Master.OfType<Entity1>(); } public IQueryable<Entity2> GetMaster2() { return t...

C# Silverlight RIA Services Authentication - Step By Step How-To?!

The Scenario I have been following Brad Abrams Silverlight With Ria Tutorials In order to build a web-based application. I have implemented my own custom version of the application that is built throughout the tutorials and am hoping to add in some authentication to it. The Problem I have followed this tutorial also by Brad Abrams on ...

Creating Test EntityList objects - RIA Services

I'm creating an EnityList to do some client side testing with my ViewModel. Something like: var people = new EntityList<Person>() { new Incident() {Age = 55, Name="Joe"}, new Incident() {Age=42, Name="Sam"} }; The problem is that the implicit (and explicit) Adds fail. The entitylist is created as read-only...

Is RIA Services right for our Silverlight app at this point?

Hi, I'm looking at Silverlight architectures and RIA Services looks interesting, but I am a bit concerned about its prelease status and how the feature set will change. We need our client app to be as responsive as possible over a slow network link, so a high priority is a solid sync system for pushing model state changes from the cli...

Database Mocking on a large system in Silverlight and RIA Services

I am using Silverlight, Ria, and the Silverlight Testing Framework. I am trying to build a mock database and have run into a few issues. First the example on the RIA site does not use the silverlight testing framework so I am not able to use it. Second The other example that I have tried does not seem very scalable. Since I need to mo...

Incorporating a Windows Mobile, a Silverlight and a Web project under a common DAL (Ria Services)

I am in the beginning of my thesis, and I have to implement a solution about aggregating reports, obtained by a Windows Mobile application, to a central storage. Then, the available data are going to be presented through an Entity Framework model, using RIA services as a data access layer, for the Silverlight project. Can I utilize the R...

Entity Framework: "The member in the conceptual model is not present in the OSpace"

I'm using RIA Services July CTP in a Silverlight app and when I change the name of a navigation property I get the following error: Error 119 The Member 'TestUsers' in the conceptual model type 'MyModel.UserGroup' is not present in the OSpace type 'MyApp.Web.UserGroup'. Is there an extra step when changing the name to a navigation p...

Is it good practice to have a table referenced by two different entities?

I am building a application with these patterns: Silverlight, RIA, EF, Prism, SL Unit Testing. This project will have lots of entities and lots of modules referencing those entities. Each entity is in its own RIA Service Library along with the RIA domain service and associated metadata. I am running into problems when I reference a ce...

RiaContext Authentication on IIS

RiaContext.Current.Authentication.LoadUser().Completed += new EventHandler(User_Completed); ... void User_Completed(object sender, EventArgs e) { CapacityDomainContext _capacityContext = new CapacityDomainContext(); _capacityContext.GetSession().Completed += new EventHandler(Session_Completed); } The code above works perfectly in vis...

How do I Unit Test a function that inserts a record into a RIA Services DB?

Hi, This is a sample function that works with an entity, saves it to a db and then causes problems because we can't write a Unit Test for it. Check it out: // this class exists in a Silverlight Class Library public class EmployeeSaver { .... public void Go() { Employee e = new Employee(); e.Name="Jeremiah"...