ria

Entity Framework / RIA Services Include not working

放肆的年华 提交于 2019-11-30 09:47:03
问题 I've got a SL4 / WCF RIA Services / EF 4 application. I'm having trouble getting my Included entity into my SL4 data context. In the server side service portion of the application, this is my method: [Query(IsDefault = true)] public IQueryable<ToolingGroup> GetToolingGroups() { var groups = this.ObjectContext.ToolingGroups.Include("MetaData").OrderBy(g => g.Name); return groups; //breakpoint set here } I assigned it to the var groups to allow it to be inspected before the method returns. If I

Silverlight 4, RIA Services & TFS 2010 Build Server

给你一囗甜甜゛ 提交于 2019-11-30 09:32:39
I have a Visual Studio 2010 solution file with a number of projects in it. There is a mix of Silverlight projects (acting as modules), the Silverlight Shell project and a number of RIA services. When using TFS 2010 to perform the build, it always fails because the proxy classes generated by the RIA services have not been built first. The only solution I have seen so far is to manually change the build order in my .sln file. No thanks, there are loads of projects. Rather than break the solution up in to client side and server side solution, I'd like to find a better solution. Apparently MSBuild

Prototype VS jQuery - Strengths and Weaknesses?

落爺英雄遲暮 提交于 2019-11-29 19:48:14
I don't want to open another " Yet Another Js VS Js " thread. I guess, in the end Prototype and jQuery are both JS and have almost the same methods and functions and need almost the same lines of code for identical tasks. For a real Rich Internet Application , what are the real strengths and what the weaknesses in Prototype vs. jQuery? I initially liked the idea of Prototype's extending elements with new or modified methods. However, I've discovered a number of reasons this is a bad thing (TM) Do some googling and you'll probably find some other reasons, but the primary reason is that

What is WCF RIA services?

老子叫甜甜 提交于 2019-11-29 19:07:21
I hate MSDN's site for WCF RIA services. It does not say what it is, it only says what it does. It says what it can achieve but does not say why I need it. For example: "A common problem when developing an n-tier RIA solution is coordinating application logic between the middle tier and the presentation tier". Well, it does not mean much to me. "RIA Services solves this problem by providing framework components, tools, and services that make the application logic on the server available to the RIA client without requiring you to manually duplicate that programming logic. You can create a RIA

Apache Pivot 1.4 vs. JavaFX, Flex, Silverlight, Swing [closed]

柔情痞子 提交于 2019-11-29 18:17:37
问题 I've recently heard about Apache Pivot being moved to the Top Level Projects category and I was wondering who has tried the most recent version and compared it to other RIA tools. What are the proper categories for comparison? It seems to be easier to pick up for Java developers since JavaFX has a different scripting language. The Pivot developers say that Pivot is what Sun should have made instead of JavaFX. 回答1: Good to hear from you. :-) I agree that we tend to focus more on applet

Entity Framework / RIA Services Include not working

早过忘川 提交于 2019-11-29 17:02:36
I've got a SL4 / WCF RIA Services / EF 4 application. I'm having trouble getting my Included entity into my SL4 data context. In the server side service portion of the application, this is my method: [Query(IsDefault = true)] public IQueryable<ToolingGroup> GetToolingGroups() { var groups = this.ObjectContext.ToolingGroups.Include("MetaData").OrderBy(g => g.Name); return groups; //breakpoint set here } I assigned it to the var groups to allow it to be inspected before the method returns. If I set a breakpoint before the method returns and add a line to my Watch window the MetaData is there:

Silverlight 4, RIA Services & TFS 2010 Build Server

怎甘沉沦 提交于 2019-11-29 14:37:31
问题 I have a Visual Studio 2010 solution file with a number of projects in it. There is a mix of Silverlight projects (acting as modules), the Silverlight Shell project and a number of RIA services. When using TFS 2010 to perform the build, it always fails because the proxy classes generated by the RIA services have not been built first. The only solution I have seen so far is to manually change the build order in my .sln file. No thanks, there are loads of projects. Rather than break the

StringLengthAttribute doesn't seem to be working

安稳与你 提交于 2019-11-29 13:33:15
问题 Here is my Test class with data annotations: class Test { [Required, StringLength(10)] public string MyProperty { get; set; } } Here is my console test program: class Program { static void Main(string[] args) { var test = new Test { MyProperty = "this is way more than 10 characters and should fail." }; var context = new ValidationContext(test, null, null); // No exception here! (why not?) Validator.ValidateObject(test, context); test.MyProperty = null; // Exception here, as expected Validator

What are your feelings on JavaFX?

故事扮演 提交于 2019-11-29 09:45:38
I currently do a lot of work in ActionScript 3.0, I also love to program in Java. Is JavaFX perfect for me? What is the general feeling on JavaFX, will it become a power house, or go down the same path as Java Applets? Could the designers I work with become comfortable with JavaFX to the same extent they are comfortable with ActionScript and JavaScript? CodingWithSpike Just wanted to add my $.02... I've been working in JavaFX for the last 4 days on my first little side-project using it. As some background, I've been programming professionally for about 9 years, starting with C, and have been

Version detection with Silverlight

坚强是说给别人听的谎言 提交于 2019-11-29 06:14:06
How can I efficiently and effectively detect the version and, for that matter, any available information about the instance of Silverlight currently running on the browser? The Silverlight control only has an IsVersionSupported function , which returns true / false when you give it a version number, e.g.: if(slPlugin.isVersionSupported("2.0")) { alert("I haz some flavour of Silverlight 2"); You can be as specific as you want when checking the build, since the version string can include all of the following: major - the major number minor - the minor number build - the build number revision -