ria-services

Removing entity bug

hello, I am trying out the ria services and I am experiencing this problem that seems very strange to me. I am creating a new entity of type "House" and add it to context without saving the context so the id of the new entity is 0, after i remove this entity and add another new entity of type "House" again and again without saving the co...

LinqToEntitiesMetadataProvider for RIA Services in Visual Studio 2010 RC

Hi everybody! I'm having trouble moving from Visual Studio 2010 Beta 2 to Visual Studio 2010RC. Did all the adjustments regarding assemblies and namespaces but i cannot figure out how to get the following decorator resolved (for DomainService): [LinqToEntitiesMetadataProvider(typeof(myEntities))] Does anyone know how this must be ad...

RIA Services Repository Save does not work!?

Hello everybody! Doing my first SL4 MVVM RIA based application and i ran into the following situation: updating a record (EF4,NO-POCOS!!) in the SL-client seems to take place, but values in the dbms are unchanged. Debugging with Fiddler the message on save is (amongst others): EntityActions.nil� b9http://schemas.microsoft.com/2003/1...

How to dermine a newly created record in RIA Services

Hi everybody! Using WCF RIA Services, how is it possible to determine if a record is newly created and attached to the domaincontext? Thanks in advance ...

Entity Framework Model with inheritance and RIA Services

Hi, We have an entity framework model with has some inheritance in it. The following example is not the actuall model, but just to make my point... Let's say Base class: Person Child classes: Employee, Customer The database has been generated, the DomainService has been created and we can get to the data: lstCustomers.ItemsSource ...

RIA Services versus WCF services: what is a difference

There are a lot of information how to build Silverlight application using .NET RIA services, but it isn't clear what is unique thing in RIA that is absent in WCF? Here are few topics that are talking around this topic: http://stackoverflow.com/questions/1647225/ria-services-versus-wcf-services http://stackoverflow.com/questions/945123/n...

Silverlight and RIA Services - The Data sources window does not show anything

Hi, So following some of the examples out there I created a new Silverlight Navigation application with RIA services enabled. Built the entity model, added a domain service and tested whether or not I could get some data to the client. This works fine. But many of the examples show off how they use the Data Sources window to simply drag...

Should I remove all inheritance from my model in order to work with ria services?

I've posted some questions on this before, but it's different. So consider a small portion of our model: Person Customer Employee Spouse Person is the base class which has 3 classes that inherit from it. These 4 are very central in our design and link to many other entities. I could solve all the problems I'm experiencing with ri...

Ria Services loading foreign keys with Linq-to-SQL

I have a database that consists of 5 tables : Course, Category, Location, CourseCategories, and CourseLocations. The last 2 tables just contain the two foreign keys. A Course has many-to-many relationships with both category and location. I am trying to load the data into a Silverlight app using Ria Services. My DB model is Linq-to-S...

Silverlight and Active Directory Interaction

I am planning to familiarize(read teach) myself with Silverlight by building an in-house app for managing our employees. I, obviously, would need this to interact with Active Directory on some level. What are my options? Has anyone tried this before? I am currently going to explore using Services(WCF???) to do the AD interaction ...

How many entities should RIA domain service include?

Hi I was wondering about how to exactly implement domain service in RIA. Is it common to include all entities in the entire domain model in a single domain service, thus making the service responsible for the entire database? Is this the way it's normally done? I really have no reason to separate data access into different services, but...

Update a single field from a single entity with ria-services

There are situations where I only want to update a specific field of a single entity in the database. I loaded the entities of that type into my silverlight application, and I know they are constantly changing on the server... but there is one field which has to be set by the silverlight client... the server will only read it. How can I...

Ria Services Entity with collection is empty when not supposed to?

Hi I'm have an object model with an Employee and EmployeeWorksiteReference (cause it's an many to many relation I have and middle entity). I use Association, Include and Composition tags on it to be able to send it over as one when saving and so on, and when saveing it works perfectly. But when I load an Employee with some EmployeeWorks...

Ria services sending over more than just the ID's when saving

I'm working with an O/R mapper and using Ria Services I have noticed that Ria services is very Data oriented and mismatches a little bit with O/R mapper. Anyway when sending the Entity over the wire to the Client every Association object are included but when sending it back over the wire then it is only the Id which follows. Can I forc...

How can I trace RIA service messages

Is there a way to see the messages that RIA services/clients send? ...

Fluent NHibernate Automapping with RIA services

Hi guys I've encountered a slight problem recently, or rather a lack of understanding of how NHibernate automapping works with RIA data services. Namely, I don't understand how to use Association and Include attributes. For instance, I've created two tables in my database and corresponding classes (that NHibernate correctly fills). The...

Can WCF Data Services or RIA Services be implemented with NHibernate?

From what I read on the internets, WCF Data Services seem to be bound to data access via Entity Framework on the server. Is there a way to have NHibernate access mapped in the same way? ...

WCF RIA Services: overriding DomainService.AuthorizeChangeSet - who cares?

I am overriding the AuthorizeChangeSet method and return false. The change set is not applied to the data context as expected, but how is the client notiied about this authorization error? The returned SubmitOperation has no error, and I cannot find any information elsewhere inside. (Still using the Nov 2009 beta with VS2008 and net3.5)...

Can you selectively enable or disable 'FilterDescriptors' in silverlight 4?

In Silverlight with RIA services it is very easy to implement simple data filtering with 'FilterDescriptor' instances. However I've got a case where I have several filters and I want to enable or disable them based on other filters. It seems like a simple 'Enabled' property would make this really easy - but there is none. Is there a w...

Silverlight 4 race condition with DataGrid master details control

Basically I want a DataGrid (master) and details (textbox), where DataGrid is disabled during edit of details (forcing people to save/cancel)... Here's what I have... I have a DataGrid which serves as my master data. <data:DataGrid IsEnabled="{Binding CanLoad,ElementName=dsReminders}" ItemsSource="{Binding Data, Element...