WCF data services callbacks?
Hi, I've got WCF data service based on EF edmx model. My question is it possibel to implement a callbacks (like in duplex service)? In order to consume live data coming from sql database. cheers Valko ...
Hi, I've got WCF data service based on EF edmx model. My question is it possibel to implement a callbacks (like in duplex service)? In order to consume live data coming from sql database. cheers Valko ...
During the creation of an auto-generated WCF domain service class based off entity framework, a file that contains the metadata for the EF classes is also created. In this file, I've had to add the [Include()] attribute to a number of classes so that I can include these properties during WCF calls. My problem is, I sometimes have to ch...
I created two viewmodel, MyViewModel, MyViewModel2. MyViewModel2 include MyViewModel as property. MyViewModel include one entity MyEntity from EF/WCF Ria Service. In MyViewModel2, I want to capture any item changes in MyEntity for databinding. My code like below: public class MyViewModel : ViewModelBase { //.... public ...
I'm putting together a series of web parts for a Sharepoint 2010 deployment - a few upgrades (from 2007) as well as a few new ones. I'm attempting to develop all the parts to perform data access server-side via a WCF service (namely, WCF RIA Services in this case). Basic synchronous databinding works great (for example): SomeGrid.DataSo...
Not to add another SO post regarding the different WCF stacks, but I want to make sure I'm heading in the right direction before I waste more development time... My scenario - Our company has a number of web apps that all access the same series of databases. All the apps were basically developed independently, so there's a ton of busine...
I'm building a site using WCF RIA services and Silverlight 4. My user database, the standard ASPNETDB user store, is on my server, which is not on my local development machine. I've created a new project using the Silverlight Business Application template. I'm still becoming familiar with how to develop for WCF RIA so bear with me. I...
My Entity object has user-assigned id key instead of database-generated id. Proxy created by Visual Studio 10 shows the following: [DataContract(Namespace="http://schemas.datacontract.org/2004/07/Simplet.Web.Models")] public sealed partial class BusinessType : Entity { [DataMember()] [Editable(false, AllowInitialValue=true)] ...
I'm doing some rapid prototyping and is trying to mock out an admin interface for a website and went with WCF RIA Services. I'm able to expose and consume the domain services from server to client, but I'm struggling with getting columns autogenerated in the datagrid when the result of the query on the server holds no data. <riaControl...
I can't make this seemingly simple call on my DomainService compile. I keep getting 'Operation named 'ComposeNewOrder' does not conform to the required signature. Parameter types must be an entity type or one of the predefined serializable types.' Am I missing something here, should I be doing it in another way or is it just unsupported...
I'm new to WCF Data Services so I've been playing. After some initial tests I am disappointed by the performance of my test data service. I realize that because a WCF DS is HTTP-based there is overhead inherent in the protocol but my tests are still way slower than I would expect: Environment: All on one box: Quad core 64-bit laptop ...
Hello everybody :-) I got a question about inserting an entity with dependent entities using RIA Services (With Silverlight 4.0). Let's say I have an Entity in my (sql) database called "Beer" and one called "Supplier", with a relationship: Beer 1 - n Supplier. There are multiple suppliers for one kind of beer. Now there's the followin...
in DB, a SP return a bit result. like: declare @temp bit; --...... return @temp; in EF, impport this SP as function and return scarlars Boolean. in domain service call this function as: public bool CallSP() { var result = this.ObjectContext.MySp(); return (bool)result; } then get error as: Cannot convert type 'System.Data.O...
With EF and WCF Ria Service, domaincontext object provides following generaic method to load entity colloection: DomainContext.Load<T> Here T must be type of Entity, not allow primitive type like bool, Boolean,... If I have SP function call return scarlars result, what't generic method to call those function at client side? ...
So I was having a debate with my co worker about WCF RIA Services, and exactly how much data we send to the client in a given request. Here is the setup: We are creating a reporting application in Silverlight and grabbing data from a WCF RIA Service to populate various grids and charts. We have two differing ideas as to how to implement...
EF + WCF Ria Service: Suppose I have entity People, because it is a partial class, so I can extend it to add a method to it: partial class People{ static string GetMyString(){ //...... return string; } } then at client side, I want to method GetMyString available for entity People. what's the best way to implement this?...
Hello, I have a fairly simple question to which I cannot seem to find the answer for. I have a silverlight app with Ria Services. In the DomainService class I have an update method like below: public void UpdateConversationState(ConversationState currentConversationState) { var original = ChangeSet.GetOriginal(currentConver...
After trying for long time I am not able to run my silverlight 4 business application successfully on my deployment server, where I don't have visual studio 2010 installed. I have IIS 7.5, OS:windows web server 2008 R2, I installed RIA services, Silverlight 4 etc. I configured IIS it works for normal silverlight websites But this silver...
Hi there, I am using SL4 with WCF RIA services. I have a domain datasource which I am using to populate a listbox. I have attached a context menu attached to the list items that I want to trigger an update to a fields value in the database. so I am trying EmployeeDetail employee = (EmployeeDetail)sender; if(employee.EmployeeDetails!=nul...
Hi! I have a query on the server side that returns a list of distinct cities from a zipcode table. I'm using WCF RIA Service. The following query successfully returns 228 cities when provincename == "" public IQueryable<CityPM> GetCities(string provinceName) { return this.ObjectContext.ZipCodes.Where(z => z.Province.Cont...
Hi All, Consider the following situation. I have an Entity named ProductSupplier that is a Presentation Model. It is created by doing an inner join of Products and Suppliers, and creating a new projection from a Linq statement. The ProductSupplier projection also creates a list of PartType objects, which is also a Presentation Model. ...