ria

RIA Services: Entity Framework Reference Entities

允我心安 提交于 2020-02-06 04:28:06
问题 I'm attempting to use RIA services with a Entity Framework back end. The Model was auto generated by the designer. (VS 2010, .NET 4.0, EF 4.0, SilverLight 4.0) The issue that I'm running into is that Reference Properties are being loaded as expected at the Service Layer, but when that information is passed over to the SilverLight App the Reference Entity becomes NULL. I've used two approaches to populating the Reference Entity: public Employee GetEmployeeByID(int employeeID) { var result =

Difference b/w creating a RIA Services Solution and RIA Services class library

心不动则不痛 提交于 2020-01-16 04:44:53
问题 what's Difference b/w creating a RIA Services Solution (i.e. Enabling RIA Services checkbox) and RIA Services class library (i.e. using a project template) What are the functional differences amongst the two? 回答1: The library option means you can share it between projects more easily. The solution option is just simpler to get working (not much though). There is no real functional difference between them. They are just different project structures. Each RIA services library turns into a web

WCF RIA SubmitChanges doesn't send master properties back to the server side

半世苍凉 提交于 2020-01-14 06:09:26
问题 Look, I have these pretty simple model Master-Detail: Hand is master of Fingers (finger is a detail of hand) So on the client side: Hand hand = domainService.Hands[0]; // get some hand, doesn't matter ... Finger f = new Finger() { f.Id = Guid.NewId() }; f.Hand = hand; // make connection !! domainService.Fingers.Add(f); domainService.SubmitChanges(OnSubmitCompleted, null); // error is here On the Server Side: public void Insert<T>(T obj) { try { using (ISession session = _factory.OpenSession()

Changing thread priority on WCF RIA Service

≯℡__Kan透↙ 提交于 2020-01-04 05:37:19
问题 We're currently changing the thread priority of a WCF RIA service call using this code. System.Threading.Thread.CurrentThread.Priority = System.Threading.ThreadPriority.Lowest; Once, the operation is invoked, we change the priority to the lowest priority and the operation continues to run. Will this have potential negative affects on other operations that are running. Also, how are these threads even handled on the server in terms of which operations get run on each thread. Am I potentially

Perform SQL Query WCF RIA Silverlight

放肆的年华 提交于 2020-01-03 05:52:50
问题 I have created a database, linked it with DomainService's within my Silverlight Application. Now I want to be able to perform certain actions, such as Registration, Login etc. by using the service. How would I be able to do this. I have preset methods created in the service, e.g. InsertUser but it only requires one parameter, so I'm not sure how it works. In the metadata I have all fields etc. Can anyone help me out here. Thanks. public IQueryable<User> GetUsers() { return this.ObjectContext

Are server-assisted MVC frameworks peaking?

谁说胖子不能爱 提交于 2020-01-02 10:06:41
问题 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

Combining .NET RIA Services and MVVM in Silverlight 3.0

十年热恋 提交于 2019-12-31 23:42:23
问题 When using .NET RIA Services and MVVM in Silverlight 3.0 is there a difference between the Metadata type from RIA Services and the ViewModel from the MVVM pattern? Are these the same thing or should they be keep separate? The metadata type is a sealed internal class to the partial Entity class. There doesn't seem to be a proper separation there but the metadata type can also be decorated with attributes for Validation which makes it look like a ViewModel. I've searched around but I didn't see

Cannot foreach through data context

眉间皱痕 提交于 2019-12-25 01:53:59
问题 i want to compare through 2 information, one is user input and second is admin ID in database. in my project, i'm using WCF Ria. i did created one auto-generated Domain Service Class and the code to retrieve everything in tblAdmin was auto-generated. i load the data in this way :: var context = new OrganizationContext(); var x = context.tblAdmins; context.Load(context.GetTblAdminsQuery()); cb1.ItemsSource = x; it can load in this way, but i cannot get the x.adminID with this. so i tried this

Binding parent and child data into DataGrid in ria services for silverlight 4

风流意气都作罢 提交于 2019-12-25 01:33:33
问题 i've started learning Silverlight 4 RIA services. i've gone over alot of samples of how to bind data to a grid. but always there object being bound is a simple one with no child tables. in my DB there's a table for employees and a table for city names (with id field as pk). in the employee table theres a FK to the CityId field. the first thing i've tried to do was to show a list of employees and their city name. this i've done in the normal way shown in all the tutorials (create edmx, create

Implementing .Net RIA Services with Silverlight3 using only existing code/classes? [closed]

人走茶凉 提交于 2019-12-24 19:17:09
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . As my latest questions have stated, i am in a process of researching on Silverlight 3 and its application as a suitable RIA solution to a pre-built