ria

Empty svc file using WCF Ria Services and ADO .NET Data Services

二次信任 提交于 2019-12-08 13:37:37
I have a WCF RIA project getting my data from an SQL Server 2008 via Entity framework. Everything is going well. However I would like to access data via a windows mobile so, as far as I can understand I have to create an ADO.NET Data Service. My domain service is called BusinessLogicDomainService.cs. Immediately after creating the corresponding BusinessObjectsDataService I write this: public class BusinessObjectsDataService : DataService<BusinessObjectsDomainService> { public static void InitializeService(DataServiceConfiguration config) { config.SetEntitySetAccessRule("*", EntitySetRights.All

WCF RIA Services - loading data and binding

有些话、适合烂在心里 提交于 2019-12-08 08:59:31
问题 I've just been toying around with the new WCF RIA Services Beta for Silverlight this evening. So far it looks nice, but I've come across a few barriers when trying to retrieve data and exposing it to the UI via binding. First of all, how am I able to get a single integer or string value from my service? Say if I have this method on my domainservice: public int CountEmployees() { return this.ObjectContext.Employees.Count(); } How am I able to make a call to this and bind the result to, say, a

ExtJS: How to use itemSelector for XTemplate having nested loop?

守給你的承諾、 提交于 2019-12-08 03:15:56
问题 I am working on Ext.view.View class to create one data view for displaying list of images received after ajax proxy. As per Sencha Doc for DataView, itemSelector property is mandatory. So I am using it as itemSelector: 'div.thumb-wrap' but respective class is inside the nested loop not in the outer loop as below: JS code: Ext.define("DSApp.Desktop.view.ImageView",{ extend: 'Ext.view.View', alias : 'widget.imageviewer', initComponent: function() { Ext.apply(this,{ itemId : 'image-data-view',

RIA DomainService not generating client code using DataContracts

大城市里の小女人 提交于 2019-12-08 02:37:54
问题 I'm working on a Silverlight 4.0 application and am using RIA services. I have created a class on the server-side which has DataContract and DataMember attributes applied to it. A DomainService exposes this class as a query result and as such, generates code for it on the client. But somehow it doesn't generate code for all properties of the class. Primitive properties of type guid, string, int, bool etc are generated just fine, but if I have a property of my own complex type, that property

RIA Services : Include with Select(Many) not Working

我们两清 提交于 2019-12-07 23:48:19
问题 I have two entity types: Document (has a Customer ) and Customer (has a collection Documents ) My query is to get documents for a customer based on either the customer's name or number. The query looks like this: public IQueryable<Document> GetCustomerDocuments(DateTime startDate, DateTime endDate, string filterText) { return this.ObjectContext.Customers .Where(c => c.CustomerName.Contains(filterText) || c.CustomerNumber.Contains(filterText)) .SelectMany(c => c.Documents) .Where(d => d.Date >

Silverlight, RIA & ASP.Net Session Timeouts

ε祈祈猫儿з 提交于 2019-12-07 06:13:11
问题 We have a requirement where we would like to redirect the user to a login page when ASP.NET Session expires and the user is working in a Silverlight plugin. So, scenario is, we have a legacy application which runs ASP.Net, all our new modules are in Silverlight, and the legacy app loads the Silverlight application. That all works :-) The user then walks away from their desk and comes back after the ASP.Net Session times out, but then tries to carry on doing something in the Silverlight App,

WCF RIA Services - loading data and binding

隐身守侯 提交于 2019-12-06 14:36:37
I've just been toying around with the new WCF RIA Services Beta for Silverlight this evening. So far it looks nice, but I've come across a few barriers when trying to retrieve data and exposing it to the UI via binding. First of all, how am I able to get a single integer or string value from my service? Say if I have this method on my domainservice: public int CountEmployees() { return this.ObjectContext.Employees.Count(); } How am I able to make a call to this and bind the result to, say, a TextBlock? Also, is there any way to make a custom layout for binding data? I feel a little "limited"

RIA Authentication from a Web Services project

我们两清 提交于 2019-12-06 13:22:41
问题 I have a silverlight app using RIA services. I want to reuse the RIA services component and call it from another web service. The web service and the RIA services component will be on the same server. I have got quite far along, my web service project has a 'service reference' to the RIA services project which is all good. But when I call one of the RIA services methods I get the exception, {DDB20766-F78A-42c7-B777-5ECF0AD9E4F3}Access to operation 'GetValidId' was denied. at System

Extjs File upload using json service?

青春壹個敷衍的年華 提交于 2019-12-06 12:41:34
问题 I am using json service(.net RIA service) to push data to server from Extjs. Currently I have a requirement to upload document to server. I saw some examples using form submit to php files. Is this possible through json service? or Is it necessery to create some server logic where i can accept form submits? Is it possible to read some binary data from client side and push as json data to server? 回答1: In Extjs, File uploads are not performed using normal 'Ajax' techniques, that is they are not

RIA Services : Include with Select(Many) not Working

懵懂的女人 提交于 2019-12-06 09:30:47
I have two entity types: Document (has a Customer ) and Customer (has a collection Documents ) My query is to get documents for a customer based on either the customer's name or number. The query looks like this: public IQueryable<Document> GetCustomerDocuments(DateTime startDate, DateTime endDate, string filterText) { return this.ObjectContext.Customers .Where(c => c.CustomerName.Contains(filterText) || c.CustomerNumber.Contains(filterText)) .SelectMany(c => c.Documents) .Where(d => d.Date >= startDate && d.Date <= endDate); } When the query returns, I want it to include BOTH the Document and