ria

RIA DomainService not generating client code using DataContracts

非 Y 不嫁゛ 提交于 2019-12-06 08:48:40
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 isn't created on the client. Here's the class in question: [DataContract] [KnownType(typeof(SummaryGroup

Are server-assisted MVC frameworks peaking?

有些话、适合烂在心里 提交于 2019-12-06 08:01:42
I've been developing web apps for over a decade now, all the way from CGI to ASP.Net and Struts + Spring + Hibernate . The prevalent architectural style seems to be server-assisted MVC , e.g. Struts , Ruby on Rails , etc. Recent developments lead me to ask if these are on the decline. Adobe's AIR and Flex Microsoft's WPF and Silverlight Google's Chrome and Gears SOFEA and SOUI All of this leads me to believe that we're starting to come full-circle after a 15-year distraction kicked-off by the invention of the web. Over this period of time, we've been so fascinated by all the web has to offer

How do I filter related Child Record

廉价感情. 提交于 2019-12-06 06:37:20
I am using RIA services. I need to select a parent entity ( UnitOccupier ) which has a number of related child entities( UnitOccupierDetails ). I need to filter the child entities to return a single record. How do I do this? var q = from uo in _unitOccupierContext.GetUnitOccupierQuery() where uo.UnitOccupierDetails.???? ---> I cant get to the child properties here Thanks You cannot include a filtered child collection of the selected parent. You can only include either the full collection or no child collection at all. But as a workaround you could use an intermediate anonymous type, like so:

Explicit many to many join table in Entity Framework 4

二次信任 提交于 2019-12-06 03:32:07
问题 By default EF hides a many to many join table that does not contain additional data than the foreign keys to the joined tables. Is it possible to tell EF (and the designer) to explicitly create the join table and make it usable in code? Thanks 回答1: No EF designer will not add this entity for you. If you want junction table exposed you must manually delete created relation and add junction table's entity and two one-to-many FK relations. Here are related questions with step by step guide: How

.NET RIA Services with MVC Style Repositories?

心不动则不痛 提交于 2019-12-06 02:10:48
问题 I have a Solution with several projects in it, including two asp.net mvc projects that share a Repositories and Models that live in a external assembly (also in the same solution). Essentially... Core/ -Repositories -Models Domestic.Web/ -Basic MVC Site, references the core project International.Web/ -Basic MVC Site, references the core project What I want to do is build a Silverlight 3 / RIA Services application for all the database admin. Thats fine except RIA Services (for the most part)

Cannot access EntityObject type via RIA services

余生颓废 提交于 2019-12-06 00:51:40
问题 My Entity Framework model is generated from SQL Server database. Since I need to access database from Silverlight, I generated a DomainService for RIAServices against the EF model. Product is one of the autogenerated EntityObject corresponding to the table Product . I am attempting to pass the custom class CompositeData across to the Silverlight client as shown. The problem is that CurrentProduct field is not accessible in the client but the other string/int fields are accessible. How can

What are the (technical) pros and cons of Flash vs AJAX/JS?

我们两清 提交于 2019-12-06 00:15:50
问题 We provide a web application with a frontend completely developed in Adobe Flash. When we chose Flash 6 years ago, we did so for its large number of features for user interaction, like dragging stuff, opening and closing menus, tree navigation elements, popup dialogs etc. Today it's obvious that AJAX/JS offers roughly the same possibilities and because of the number of frameworks that are readily available, it's very feasible to implement them. Is there a technical reason one should choose

Converting ESQL to LINQ to Entities. Sort by related entities

非 Y 不嫁゛ 提交于 2019-12-05 14:29:10
I am using EF + RIA and unfortunately meet some problems with sorting by related entities. For such purpose there is ESQL query that I implemented (found only this solution): var queryESQL = string.Format( @" select VALUE ent from SomeEntities as ent join Attributes as ea ON ea.EntityId = ent.Id where ea.AttributeTypeId = @typeId order by ea.{0} {1}", columnName, descending ? "desc" : "asc"); var query = ObjectContext.CreateQuery<SomeEntity>(queryESQL, new ObjectParameter("typeId", attributeTypeId)); Tables have following structure: <Attribute>: int Id; decimal DecimalColumn; string

JavaFX in the wild?

家住魔仙堡 提交于 2019-12-05 10:31:42
问题 Does anybody know of any real-world web applications based on JavaFX? I'm an experienced Java programmer considering starting a website while I'm not at my day job. I don't have a lot of expertise on the UI side, so I'm looking for the best way to leverage my existing skills to create something that can provide an awesome RIA experience. Only trouble is, I don't know of any sites that are implemented using JavaFX, since it's so new. I'd like to see what it's capable of. 回答1: Found here quite

Silverlight, RIA & ASP.Net Session Timeouts

邮差的信 提交于 2019-12-05 09:19:20
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, which uses a RIA Domain Service. Because the session has time out, the RIA Domain Service fails, but it