ria

How to set up RIA services with Silverlight 4.0 and without EF

萝らか妹 提交于 2019-12-18 13:38:30
问题 As a Silverlight newbie, I am finding it really hard to set up an RIA Web service. The examples available on the web almost always refer to Entity framework as the ORM but we are using NHibernate as our ORM. I am aware of the tutorial by Brad Abrams where he uses NHibernate as the ORM but most of it goes above my head because I am also a newbie at NHibernate and some of the concepts of RIA are not clear to me e.g. DomainService. I'd like to first keep it simple and ignore the ORM at the

ExtJS 5 - Download file from POST servlet request

北战南征 提交于 2019-12-13 19:22:51
问题 I have trying to implement the export functionality in ExtJS 5 using form submit method. And I had look at the following stackoverflow link, it helps but not fully. Extjs 4 (with a code for 3.4 below) downloading a file returned from a post request In my case i facing an issue after the request response is successful, getting invalid JSON encoding error.Even i tried to change the reader from JSON reader to some other string reader(mentioned in link), but it is quite successful for some reason

using autocomplete box in silverlight?

浪尽此生 提交于 2019-12-12 17:04:50
问题 i am currently displaying data in the radgrid controls of telerik, i want to add an autotextbox over the column named "Name". how can i do this? my radgrid only displays data and i want that whenever user enters into textbox a list of name pops up just like in stackoverflow web site. please help..i have been using silverlight,wcf ria services,telerik controls. 回答1: You can use the AutoComplete textbox from the Silverlight 4 Toolkit. The toolkit is an advanced set of controls that are not part

Embed a browser in Flex

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 15:11:46
问题 Anyone know of any documentation that would help me with trying to embed a web browser component into adobe flex. I've seen in Adobe Air that there is a Item; however, in Adobe Flex 3 for a .swf file that would be somewhere - I do not see it. Any ideas? 回答1: Only Air has that capability built in. However there is a very good-looking component that you can find here: http://drumbeatinsight.com/ It is paid-for though. Open source solutions are here http://sourceforge.net/projects/as3htmlparser/

WCF RIA Service deployment issue

蓝咒 提交于 2019-12-12 10:35:40
问题 I have a very simple sample silverlight application. I added a domain service to it with an entity model that has one entity. The client app simply loads all rows in the entity at startup. When I run this on my development box, it works as expected. However, when I move it to our test server I get an exception saying that the method I am calling cannot be found (Load operation failed for query 'GetCTCStation'. The remote server returned an error. NotFound.). When I inspected the client/server

Architecture Question: GWT or Vaadin to create Desktop Application?

拟墨画扇 提交于 2019-12-12 08:15:04
问题 We're planning on creating a feedreader as a windows desktop- and iPad application . As we want to be able to show Websites AND to run (our own) JavaScript in this application, we thought about delivering the application as HTML/CSS/JavaScript, just wrapped by some .NET control or a Cocoa Touch webbrowser component. So the task at hand is to find out which framework to use to create the HTML/CSS/JS files to embed in the application. For the development of the HTML/CSS/JavaScript we would be

Join two tables and filter result using EF 4 and RIA services

不羁的心 提交于 2019-12-12 03:18:06
问题 Public Function LoadSiteInfo(ByVal sId As Integer) As IQueryable(Of Site) Return Me.ObjectContext.Sites.Include("SiteData").Where((Function(f) f.SiteID = sId) AndAlso Function(x) x.SiteData.SiteUpdateDate < today)) End Function So, I'm trying to filter on SiteId from the Sites table, ANDALSO on the SiteUpdateDate in the SiteData table, it's the last part where I cannot get the syntax correct - it's just saying that SiteUpdateDate attribute is not a member of ObjectContext.Site, which is

Endpoint not found

余生颓废 提交于 2019-12-12 02:42:05
问题 I have created a new WCF RIA service with OData exposed. I wanted to test it out. My project name was ChinookSample and the namespace was ChinookSample.Web.Services When I try to browse... http://localhost:52878/Services/ChinookSample-Web-services-dsAlbumAndArtist.svc I get the service page, but the moment I go for... http://localhost:52878/Services/ChinookSample-Web-services-dsAlbumAndArtist.svc/OData I get EndPoint not found . I have checked my Web.Config and that has the OData defined.

POCO entity-based RIA service can't de-serialize associated entities

╄→гoц情女王★ 提交于 2019-12-12 01:35:32
问题 I'm developing a Silverlight Business Application, using a RIA service, which is returning POCO entities (TaskTime and User). The TaskTime entity has a User entity associated with it. I have created a domain service which has a query function (GetTimesheet) which returns an IQueryable collection of TaskTime entities, which works fine if I don't try and get the associated User entities as well, but as soon as I include the [Include] and [Association] attributes above the 'User' property in the

RIA Services: Enumerate Deleted Entities

北战南征 提交于 2019-12-11 14:03:40
问题 My RIA service context class has an entity set TaskToOperationAssociations which contains a list of Task to Operation associations. Is there a way to "find" an association entity which has been removed from the collection? I can see that the context has a reference to the removed Association in it's private fields (it obviously needs to keep track of it so the delete operation can be submitted). Here's an example... If I have Task "A" (with Id=T1) which is associated to Operation X, Y and Z