wcf-ria-services

Silverlight 4.0 and WCF RIA Services Security

Hi guys. I'm recently want to develop an application for my company. I've checked the Silverlight 4.0 and WCF RIA Services. Its really amazing and I got tempted to use these services for our application. But I have a couple of questions: Is there any ways to prevent unauthorized users not to be able to connect to the service and enumer...

Are there applications for RIA Services that go beyond simple CRUD editors

It seems that the large majority of tutorials, samples and in fact out of the box templates guide devlopers new to RIA Services towards building a simple CRUD / table editor app. I realize that CRUD is simple to communicate and gets a big round of applause but I can't believe that real line of business applications are all that simple. ...

Silverlight 4 WCF RIA Services and MVVM is not as simple

[Disclaimer: I'm ASP.NET MVC Developer] Hi, I'm looking for some best practices with implementing MVVM pattern with WCF RIA in Silverlight 4. I'm not looking to use MEF of IoC for locating my ViewModels. What I would like to know is how to apply MVVM pattern with Silverlight 4 and WCF RIA. I don't want to use other stuff like Prism...

Moving from WCF RIA Beta to RC: best practices?

I have an existing WCF RIA project built on the Release Candidate; I'm now moving to the Release version & have discovered many changes. David Scruggs made the following comment on his (MSDN) blog: "If you’ve written anything in SIlverlight 4 RIA Services, you’ll need to rewrite it. There has been a lot of refactoring and nam...

WCF Services (with RIA)

I am new to WCF and WCF derived services. I am using VS 2010, silverlight 4, ria services 4. Recently I created plain WCF REST services (no RIA, no SOAP) with my endpoint (using wsHttpBinging): <endpoint address="" behaviorConfiguration="wsBehavior" binding="wsHttpBinding" bindingConfiguration="wsbinding" contract="WcfSer...

how to send MyType.List<MyOtherType> with WCF RIA Services

How to send Points from below Result class with RIA services ? I've tried what's written below but it doesn't work. (Only one Point is sent from Points collection !?) public class Result { [KeyAttribute] public double Key {get;set;} [Include] [AssociationAttribute("AssociationName", "Key", "Key")] public List<Point>...

Modifying a column with the 'Identity' pattern is not supported in WCF RIA Services

I've been following the walkthrough for creating your first WCF RIA Services Application from Microsoft and have encountered a problem when trying to edit and update data using the SubmitChanges() method of the Data Context. The table being updated has an Identity Specification set in SQL Server 2008 on the 'CourseID' column. However t...

How to prepare data for display on a silverlight chart using WCF RIA Services + Entity Framework

I've used WCF RIA services with Entity Framework to build a simple application which can display and updates data about school courses. This was done by following the Microsoft tutorials. Now I would like to have a chart which shows a count for how many courses are on a key stage. Example: Key Stage 3 - 20 courses Key Stage 4 - 32 co...

how does the DomainDataSource.SubmitChanges know the methods to call on the server

I configure the DomainDataSource to execute a particular server side method by setting the Query property. If I then make changes to the retrieved data, and call SubmitChanges the control somehow knows the correct method to call. (UpdateEmployee for example) Where is the name of the update method set, or it is simply inferred by some s...

How do I do client-side validation in WPF using WCF RIA Services

Hi! I've created a WCF RIA Service that I'd like to use with a WPF application. I've added several System.ComponentModel.DataAnnotations validation rules on the entities meta-data, all which work great on the server when I call .SubmitChanges(changeSet) from the client. I'd also like to validate my entities on the client side before I...

How to access WCF RIA service from Windows Service?

I have a functioning SL4 application (VS2010, SL4, WCF RIA, hosted on my dev box using Cassini, 64-bit Windows 7). Inside the ClientBin directory I have an .svc file that describes my service: <% @ServiceHost Service="MyApp.Services.MyServiceFactory="System.ServiceModel.DomainServices.Hosting.DomainServiceHostFactory" %> When I brows...

Deployment Error: Silverlight 4.0 w/WCF RIA Services in ASP.NET MVC 2 App

I've got an MVC 2 App with an RIA Services link to a Silverlight Application. The public facing portion of my site will be strictly MVC/HTML, but the administive portion will be silverlight (hosted in an MVC view page with data coming from RIA Services). On my development machine, all is well, but when I deploy to Discount ASP servers,...

Entity Framework with RIA services, Silverlight - tradeoff of decoupling versus rapid development

I've been playing around lately with Entity Framework, WCF RIA Services, and Silverlight 4. I'm impressed by how rapidly you can develop an application with these tools, and you get a lot "for free", such as the Silverlight UI automatically knowing about certain validations that are included as DataAnnotations on the EF model. However,...

simple Silverlight binding with WCF RIA does not work (I am new bie to WCF RIA)

I am using following markup on Silverlight page: <Grid x:Name="lytEmpForm" Margin="8"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <Colum...

WCF RIA Services v1.0 Timeouts

I have a RIA service methods which return quite a large amount of (binary) data to my silverlight application. The methods themselves (database access etc) complete quickly, but since I upgraded to v1.0 from the RC2 I've been experiencing timeouts, even when I limit the data returned to the smallest objects. Debug shows the method return...

How to implement a lazy loaded Silverlight data grid without using paging

Using the Business Application template from the brand new released RIA Services, you can see lots of examples using the data grid on top of a DomainDataSource in combination with a DataPager. The properties PageSize and LoadSize can be used to adjust the amount of data to be displayed in one page and the data that is prefetched in the b...

Don't show Data in DataGrid

Hi in my app, I used WCF Services for load data from SQL DB then in Completed Event Handler of my ServiceClient write this code: void svc_GetOrdersCompleted(object sender, GetOrdersCompletedEventArgs e) { if (e.Error == null) { dgOrders.ItemsSource = e.Result; txtStatus.Text = ""; } else txtSta...

Datagrid doesn't refresh on changed data

Hi. Is there any way to have a datagrid listen to the database and automatically update the data if the database data is changed? I use a SQL Server database. I'd like to use Linq-2-SQL if possible thx in advance :D ...

how can we create .svc file for WCF RIA services Class library

Hi, I am developing a Silverlight application with WCF RIA Serivces. now I want to deploy the WCF service on different server and expose services as .svc files. I have used WCF class Library but not able to find how can we deploy Services on the seperate server. Thanks, Sharad Rastogi ...

How can I change the xml:base published by a WCF Data Service?

Hi, I have a WCF Data Service for which I have a custom URL Rewriter so the real url is not visible and I can add special elements in the path for customizing it. For example: http://localhost/Data/ABCD.odata/ Maps to: http://localhost/Data/OneData.svc/ This almost works except that the service is publishing back in the response XML ...