ria

Is Entities on Client side anti-pattern?

纵饮孤独 提交于 2019-12-11 07:19:13
问题 I have used RIA service before, now testing Breeze Sharp. RIA as well as Breeze give an impression that what you see on the server/middle tier is what you see on the client. To support that, the term Entity is being used on both the client and the server. Is it really an Entity, or it really a Presentation Model or Model on the client? For smaller systems having one or two level entity graphs, there may not be wrong in thinking both the client and the server is the same. For larger systems

Safari 6 Developer Tools XHRs Post Data

北城余情 提交于 2019-12-11 06:47:03
问题 Is it just me, or is the body of the request no longer available? I am looking Resource (^1) -> XHRs. Also, is there a way to order these chronologically, as opposed to alphabetically? I'm looking here 回答1: Guys if you want to see post data in safari 6 which is not possible right now, install the firebug lite extension and there you go you have the post data. I used it and it works great with safari 6 回答2: in answer to your second question, you can view them chronologically by clicking on the

Querying a SQL View, with Linq in a Domain Services Class and Entity Data Model

旧街凉风 提交于 2019-12-11 05:43:12
问题 Visual Studio 2008 | Silverlight 3 | SQL Server 2005 | Domain Services Class | Entity Data Model I have a database table "Students" with columns FirstName, LastName, Semester, ProgramOfStudy, Column etc....... The goal is to return a Total (number of students grouped by first letter of lastname), based on the first letter of the lastname of all students in a given Semester and Programofstudy . I was unsuccessful writing the LINQ query and thought I would try to use a SQL View. Created the

How to make synchronous RIA request

你说的曾经没有我的故事 提交于 2019-12-11 05:42:22
问题 I have an existing RIA service in which I would like to include a very simple call to find the maximum fields allowed for a certain custom object. The value will change infrequently, if ever, and I would like to call it just once when needed and then keep it on the client. However, when I need to know the value, I need to know it in a synchronous manner, as I will be using it right away. I've tried the following, but the .Value is always just 0, since the service doesn't actually make the

Disable caching of DomainContext / DomainDataSource in Silverlight RIA Services

感情迁移 提交于 2019-12-11 03:12:53
问题 I use a DomainDataSource with filter descriptors, but it seems that the DomainDataSource (or DomainContext) is caching old data and not replacing it with fresh data from the database. <riacontrols:DomainDataSource AutoLoad="True" LoadSize="5" Name="employeeDomainDataSource" QueryName="GetEmployeeQuery" Width="0" DomainContext="{Binding EmployeeContext}"> <riacontrols:DomainDataSource.FilterDescriptors> <riacontrols:FilterDescriptor IsCaseSensitive="False" PropertyPath="Name" Operator=

Entity Framework: AttachAsModified failure / confusion :)

我的梦境 提交于 2019-12-10 22:27:43
问题 Ok... I tried google and didn't get many hits. I dont want to abuse So but this is one of the best places to ask and EF isn't well documented. My fails because the GetOriginal() returns null in UpdateCmsProductCategory. I assume that means currentCmsProductCategory is not in the ChangeSet. Ok... how do I put it in the changeset? Here is the sequence... I pull a CmsProductCategory down over Wcf. I make changes. I call the Wcf update method... public void UpdateProductCategory

WCF RIA Services and communicating via SSL

こ雲淡風輕ζ 提交于 2019-12-10 19:58:24
问题 I have a simple Silverlight application that use WCF RIA Services to communicate with the ASP.NET application on my web server. By default I assume that this communication is plain and not encrypted in any way. How do you request it use SSL or some other method to ensure that all data via the WCF RIA Service is secure? 回答1: On a domain service you can specify in the EnableClientAccess attribute that only secured transport is allowed. ie. [EnableClientAccess( RequiresSecureEndpoint = true )]

Consuming RIA services without a silverlight project

巧了我就是萌 提交于 2019-12-10 16:58:32
问题 We have a silverlight project that uses RIA services. There is some code that I want to share between that project and a web service. I have to leave the code where it is now, i.e. I cannot share the code. What I thought would be good is for the web service to call the RIA service. It will be sitting on the same server. I went to my web service project, and added a service reference to the ria service. I clicked advanced and ticked the option for it to 'generate asynchronous operations'. I

silverlight MatchTimeoutInMilliseconds bug : resolve DomainServiceClientCodeGenerator

倾然丶 夕夏残阳落幕 提交于 2019-12-09 13:19:07
问题 Silverlight 5 .Net Framework 4 I am trying to implement a workaround for the recent bug in the RIA code generator "MatchTimeoutInMilliseconds could not be found" https://connect.microsoft.com/VisualStudio/feedback/details/1988437/generated-code-for-silverlight-references-matchtimeoutinmilliseconds-which-does-not-exist I'm trying to use the workaround by Lazebnyy , But I can't seem to get DomainServiceClientCodeGenerator to resolve. Lazebnyy writes: Install RIAServices.T4 from Nuget in the

Why might gwt be getting more popular?

自闭症网瘾萝莉.ら 提交于 2019-12-09 12:55:52
问题 I've noticed a dramatic increase in GWT popularity during the past 6 months. More evidence can be seen here: http://www.indeed.com/jobtrends?q=gwt&l= Can someone explain the cause? 回答1: I would say jsight's answer is a pretty good explanation. I have looked at Flex, Rails and GWT. All three inhabit the same space, with Flex producing Flash RIAs and GWT and Rails doing the same for HTML. Having worked with Flex, there is a lot to like but some serious niggling problems, the main one for me