wcf-ria-services

Silverlight (WCF RIA) - PagedCollectionView throws ArgumentOutOfRangeException on Context.RejectChanges()

Hi to all I have a problem when i use the PagedCollectionView in my business application. I made a sample solution and i could reproduce the exception that PagedCollectionView throws. This happens when i use two or more i.e. DataGrids which have as an ItemSource sorted and filtered PagedCollectionViews. All this PagedCollectionViews ar...

Need help understanding Generics, How To Abstract Types Question.

I could use some really good links that explain Generics and how to use them. But I also have a very specific question, relater to working on a current project. Given this class constructor: public class SecuredDomainViewModel<TDomainContext, TEntity> : DomainViewModel<TDomainContext, TEntity> where TDomainContext : Doma...

How does WCF RIA Services handle authentication/authorization/security?

Since no one answered this question: What issues to consider when rolling your own data-backend for Silverlight / AJAX on non-ASP.NET server? Let me ask it another way: How does WCF RIA Services handle authentication/authorization/security at a low level? e.g. how does the application on the server determine that the incoming http ...

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...

Ria Services vs WCF Dataservices

My Team are evaluation to a bigger Business portal. (Invoicing, Bookkeeping, Salaries.....) We are all used to work with DDD, O/R mappers with NHibernate as our first choice. We have chosen to work with CompositeWPF to keep modularity between all modules and part system in the business portal. Now we have evaluated Ria Services and are...

RIA Services Localization, where to place Resource Files

I have the following Solution: SomeProject.Ria (non Silverlight code) SomeProject.Ria.Silverlight (Silverlight light code, namespace is still SomeProject.Ria) SomeProject.Ria.MyServices (RIA Services Domain Service) SomeProject.Ria.MyServices.Proxies (RIA Services Silverlight Generated Code) SomeProject.Shell (Silverlight Applicaiton) ...

Idiomatic default sort using WCF RIA, Entity Framework 4, Silverlight 4?

I've got two Silverlight 4.0 ComboBoxes; the second displays the children of the entity selected in the first: <ComboBox Name="cmbThings" ItemsSource="{Binding Path=Things,Mode=TwoWay}" DisplayMemberPath="Name" SelectionChanged="CmbThingsSelectionChanged" /> <ComboBox Name="cmbChildThings" ItemsSource="{Binding...

Are WCF RIA services a good thing?

If multiple teams write Silverlight applications that access the same DB, there will be duplication between the generated services. Also, if developers customize the service with BL this is another duplication. Isn't it be better to expose a single reusable data service for the whole organization to share? Yes, it was possible to write ...

Silverlight 4 Overriding the DataForm Autogenerate to insert Combo Boxes bound to Converters.

I've been working towards a solution for some time and could use a little help. I know I've seen an example of this before, but tonight I cannot find anything close to what I need. I have a service that provides me all my DropDownLists, either from Cache or from the DomainService. They are presented as IEnumerable, and are requested f...

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...

Can WCF RIA Services be self hosted?

I know WCF can be self hosted. how about WCF RIA Services? Thanks! ...

Domain Service method not compiling; claims "Return types must be an entity ..."

I have a WCF RIA Domain Service that contains a method I'd like to invoke when the user clicks a button: [Invoke] public MyEntity PerformAnalysis(int someId) { return new MyEntity(); } However, when I try to compile I'm given the following error: Operation named 'PerformAnalysis' does not conform to the required signature. Return...

How can I trace RIA service messages

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

RIA Services not returning Included Type Collection Property

I have a WCF RIA Services app and a model with a UserRole type that contains a collection of UserPermission objects. I use .Include("UserPermission") in the domain service and when I debug it I've verified it definitely contains the UserPermission types before returning. When I debug the Silverlight 3 client it returns the UserRoles bu...

Silverlight 4 with WCF RIA architecture applying DDD

Hello, In my ASP.NET MVC applications I use DDD and it works very well. I'm new to Silverlight development and would like to know how could I apply DDD to build a new architecture. I had a look on WCF RIA Services and what is exposed by default it's the simple CRUD methods. I would like to use MVVM pattern. I thought about general arch...

How do WCF RIA Services compare to LiveCycle Data Services?

WCF RIA Services for Silverlight and LiveCycle Data Services for Flex look similar on the surface but there must be a reason why one is free while the other costs a fortune. Could anyone provide a brief description of what is similar between them and what makes them different? ...

WCF RIA Services build error

Hi I'm getting a strange error when building my WCF RIA Services Silverlight project in VS2008. In the output I have this message: C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Ria.Client.targets(261,5): error : Failed to write the generated contents of 'C:\projects\[Path_To_Silverlight_Project]\Generated_Code\Analytics...

partial entity loading and management in silverlight / wcf ria

I have a Silverlight 4 app which pulls entities down from a database using WCF RIA services. These data objects are fairly simple, just a few fields but one of those fields contains binary data of an arbitrarily size. The application needs access to this data basically asap after a user has logged in, to display in a list, enable selecti...

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)...

WCF RIA Serices referencing another RIA Service class library

I am getting an "ambiguous namespace" exception. It is because I have mutiple RIA Services class libraries that reference other RIA Services class libraries. Is it possible to only allow the code generated part of a RIA Services class library and not as a reference? I don't want to create a monolithic RIA Services class library as ...