wcf-ria-services

RIA Services: Inserting multiple presentation-model objects

99封情书 提交于 2019-12-19 04:12:29
问题 I'm sharing data via RIA services using a presentation model on top of LINQ to SQL classes. On the Silverlight client, I created a couple of new entities (album and artist), associated them with each other (by either adding the album to the artist's album collection, or setting the Artist property on the album - either one works), added them to the context, and submitted changes. On the server, I get two separate Insert calls - one for the album and one for the artist. These entitites are new

RIA Services versus WCF services: what is a difference

梦想与她 提交于 2019-12-18 11:50:31
问题 There are a lot of information how to build Silverlight application using .NET RIA services, but it isn't clear what is unique thing in RIA that is absent in WCF? Here are few topics that are talking around this topic: [1], [2] But they doesn't give an answer to the question. Sorry for the stupid question, but what does RIA Services layer bring into your app if you already have Silverlight <--> WCF Service <--> Business Logic <--> Entity Framework Model <--> Database ? Authentication?

How to use WCF RIA SERVICES with WPF application?

夙愿已清 提交于 2019-12-17 16:42:12
问题 I want to use WCF RIA SERVICES in my WPF application. but WCF RIA SERVICES client only surport silverlight and ASP.NET now, how can I use it in WPF application? 回答1: Here is the link describe the RIA servicive for WPF application http://blogs.msdn.com/b/davrous/archive/2010/12/03/how-to-open-a-wcf-ria-services-application-to-other-type-of-clients-the-soap-endpoint-3-5.aspx I think this is useful for you 回答2: You have to use RIA Services toolkit. It can be downloaded from here. After

Silverlight 4, Validation error state doesn't get reflected in my own custom UserControl

霸气de小男生 提交于 2019-12-13 18:23:17
问题 Validation error state doesn't get reflected in my UserControl. I was following this similar StackOverflow question to solve it. I am not using an MVVM approach by choice. It's using WCF RIA Services with Entity Framework. But it didn't seem to help me, what am I missing, or why is my scenario different? Note: If I put a TextBox (not inside the UserControl) in my main page, it shows validation error. This is my UserControl code: <UserControl x:Class="TestApp.MyUserControl" xmlns="http:/

RIA Services - call a stored procedure

只愿长相守 提交于 2019-12-13 15:35:14
问题 I am using RIA Services with Silverlight and Entity Framework. I want to call a stored procedure and map the results to a datagrid. What is the best way to do this? The output of the stored procedure doesn't map to any table design. I found the following article - http://blogs.msdn.com/b/tom/archive/2009/05/07/silverlight-ria-calling-stored-procedures-that-don-t-return-tables.aspx However, it doesn't work for me - I get an error saying that the result complex set does not have a primary key

WCF RIA's (Silverlight Business Application Template) for Visual Studio 2013 missing

可紊 提交于 2019-12-13 05:43:23
问题 I have a fresh install of Visual Studio 2013 (Ultimate) and I have downloaded and installed WCF RIA Services Toolkit from Microsoft However when I create a new project under Visual C# -> Silverlight I don't find the Silverlight Business Application template in it. On Google and on Stackoverflow I only see that the problem was earlier on the Visual Studio 2010 which required required SP1 and you were required to select the .Net Framework 4+. What is the problem? Is there anything else missing?

How to select fields from table in wcf ria services

自古美人都是妖i 提交于 2019-12-13 04:03:20
问题 I am using a silverlight business application using wcf ria services. in my domain class there is a method public IQueryable<Employee> GetEmployees() { return this.ObjectContext.Employees; } this method returns al the field in the table and i can bind it to datagrid. table contains employee id,employee name and age fields. Now i want to take only one or two fields from this table. i mean i need employee name and age ,not id. or i need to use employee name to bind to combobox. How can i do

InvokeOperation entities become null

可紊 提交于 2019-12-13 03:16:39
问题 This is my method :- [Invoke] public List<FamilyEvent> GetFamilyEvents(int userId) { List<FamilyEvent> familyEvents = new List<FamilyEvent>(); int id = -1; //just to fool ria //this is for birthday reminders. var qry = ((from member in this.ObjectContext.TreeMembers.Where(m => m.UserId == userId && m.Birthdate == null) select member.TreeMemberId).Except(from item in this.ObjectContext.FamilyEvents where item.ReminderType == FMT.Data.Web.Helpers.Global.FAMILY_EVENTS_REMINDERS.BIRTHDAY_REMINDER

Silverlight with RIA services on IIS 10.0 results in 404 error

谁都会走 提交于 2019-12-12 13:36:24
问题 Trying to migrate an existing working Silverlight application with WCF RIA services from IIS 6.0 to IIS 10.0 on W indows Server 2016 but the application fails returning 404 error s. When I install Visual Studio on the server and try running the application then it works fine within the context of IIS Express. The server has the following components installed. Microsoft Silverlight 5.0 Microsoft Silverlight 4 SDK Microsoft Silverlight 5 SDK WCF RIA Services V1.0 SP2 I’ve even tried to directly

Silverlight 4 Overriding the DataForm Autogenerate to insert Combo Boxes bound to Converters

非 Y 不嫁゛ 提交于 2019-12-12 12:14:12
问题 I've been working towards a solution for some time and could use a little help. I know I've seen an example of this before, but tonight I cannot find anything close to what I need. I have a service that provides me all my DropDownLists, either from Cache or from the DomainService. They are presented as IEnumerable, and are requested from the a repository with GetLookup(LookupId). I have created a custom attribute that I have decorated my MetaDataClass that looks something like this: [Lookup