| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
4 Articles match "LINQ"
See all articles with
"LINQ"
| The Latest from Mark's Blog of Random Thoughts | MORE | | Using Rx (Linq to Events) with WPF It essentially provides a mechanism to do event driven programming through LINQ. A recent series of blog entries at [link] introduced the Rx framework (System.Reactive.dll) which is an assembly used in the Silverlight toolkit for UI testing purposes. I'll refer you to the blog referenced above for all the gory details - frankly I'm still trying to wrap my mind around it! Silverlight isn't my favorite technology however, I much prefer working in WPF and so I spent some time rebuilding Rx for the desktop CLR! The difference is in the dependency on mscorlib and other references. Mark's Blog of Random Thoughts - Monday, August 3, 2009 Using MVVM with Menus in WPF Edit: added intermediate object in LINQ query to fix deferred query issue pointed out in comments. >. One question I've fielded a couple of times is how to manage menus, primarily context menus, with the MVVM pattern. It turns out to be pretty easy once you know the "trick". The key thing to keep in mind is that menus are just ItemsControls - they support data templating and binding like any other ItemsControl. However, the part where people get lost is in hooking up the commands. Here's one I've used: public class MenuItem. {. public string Text { get ; set ; }. public List. get {>. Mark's Blog of Random Thoughts - Tuesday, April 21, 2009 LINQ is just freaking cool We had already presented a talk on LINQ earlier in the week and so I thought we might be able to do the above in a single expression with LINQ - kind of a challenge. It's not easily readable (and so I wouldn't promote this for production code), but it's way cool and an example of how LINQ (and functional programming in general) is really changing the way programmers think about code. Queue ars = new Queue (); Func mathProc = Multiply; for ( int i = 1; i <= 20; i++). {. for ( int j = 1; j <= 20; j++). ars.Enqueue(mathProc.BeginInvoke(i, j, null , null )); }. ToList().ForEach(e Mark's Blog of Random Thoughts - Thursday, March 5, 2009 | | The Best from Mark's Blog of Random Thoughts | MORE | | Using Rx (Linq to Events) with WPF It essentially provides a mechanism to do event driven programming through LINQ. A recent series of blog entries at [link] introduced the Rx framework (System.Reactive.dll) which is an assembly used in the Silverlight toolkit for UI testing purposes. I'll refer you to the blog referenced above for all the gory details - frankly I'm still trying to wrap my mind around it! Silverlight isn't my favorite technology however, I much prefer working in WPF and so I spent some time rebuilding Rx for the desktop CLR! The difference is in the dependency on mscorlib and other references. Mark's Blog of Random Thoughts - Monday, August 3, 2009 LINQ is just freaking cool We had already presented a talk on LINQ earlier in the week and so I thought we might be able to do the above in a single expression with LINQ - kind of a challenge. It's not easily readable (and so I wouldn't promote this for production code), but it's way cool and an example of how LINQ (and functional programming in general) is really changing the way programmers think about code. Queue ars = new Queue (); Func mathProc = Multiply; for ( int i = 1; i <= 20; i++). {. for ( int j = 1; j <= 20; j++). ars.Enqueue(mathProc.BeginInvoke(i, j, null , null )); }. ToList().ForEach(e Mark's Blog of Random Thoughts - Thursday, March 5, 2009 Using MVVM with Menus in WPF Edit: added intermediate object in LINQ query to fix deferred query issue pointed out in comments. >. One question I've fielded a couple of times is how to manage menus, primarily context menus, with the MVVM pattern. It turns out to be pretty easy once you know the "trick". The key thing to keep in mind is that menus are just ItemsControls - they support data templating and binding like any other ItemsControl. However, the part where people get lost is in hooking up the commands. Here's one I've used: public class MenuItem. {. public string Text { get ; set ; }. public List. get {>. Mark's Blog of Random Thoughts - Tuesday, April 21, 2009 | - LINQ is just freaking cool
We had already presented a talk on LINQ earlier in the week and so I thought we might be able to do the above in a single expression with LINQ - kind of a challenge. It's not easily readable (and so I wouldn't promote this for production code), but it's way cool and an example of how LINQ (and functional programming in general) is really changing the way programmers think about code. Queue ars = new Queue (); Func mathProc = Multiply; for ( int i = 1; i <= 20; i++). {. for ( int j = 1; j <= 20; j++). ars.Enqueue(mathProc.BeginInvoke(i, j, null , null )); }. ToList().ForEach(e %>
98 Articles match "LINQ"
See all articles with
"LINQ"
| The Latest from DevelopMentor | MORE | | Reblogged: What should I learn to get started in.NET and web development? LINQ (simple focus on LINQ to objects). '[ Note : I am reblogging this post which originally was posted to the LearningLine blog. Hope you all find it useful here as well]. recently had a conversation with someone who is looking to make a fresh start and become a developer (coming from other IT positions). The question they had was: What should I learn to get started in.NET and web development? Now this question was starting from a position of “I’d like to get started with.NET and the web. How do I do that?” That’s another blog post. :). jQuery basics. Michael C. Kennedy's Weblog - Monday, May 6, 2013 A Roundup of MongoDB Management Tools LINQPad lets you interactively query databases in a modern query language: LINQ. Filed under: NoSQL Tagged: LINQ , NoSQL , Open Source. NoSQL LINQ Open Source 'I’ve been working with MongoDB for a long time now. Back in the early days, there really were no management tools analogous to RDBMS tools (e.g. SQL Server Management Studio ). Since then, things have changed significantly. It’s time to look around and see what management / monitoring tooling is around these days for MongoDB. The news is good. link]. Admin GUI). Multiple shells. Multiple results. link]. Michael C. Kennedy's Weblog - Monday, April 22, 2013 Optimistic concurrency in MongoDB using.NET and C# All you do is call save and access entities via LINQ queries. 'This article demonstrates a technique and supporting library for adding optimistic concurrency control to NoSQL databases and MongoDB in particular. Quickly, what is optimistic concurrency control? Ideally, all databases that allow concurrent access or disconnected access need to implement some form of concurrency control. This usually comes in two flavors: Pessimistic concurrency control. Optimistic concurrency control. Pessimistic concurrency control is usually used when working heavily within transactions. Edit in memory. Michael C. Kennedy's Weblog - Monday, April 8, 2013 | -
| The Best from DevelopMentor | MORE | - A Roundup of MongoDB Management Tools
LINQPad lets you interactively query databases in a modern query language: LINQ. Filed under: NoSQL Tagged: LINQ , NoSQL , Open Source. NoSQL LINQ Open Source 'I’ve been working with MongoDB for a long time now. Back in the early days, there really were no management tools analogous to RDBMS tools (e.g. SQL Server Management Studio ). Since then, things have changed significantly. It’s time to look around and see what management / monitoring tooling is around these days for MongoDB. The news is good. link]. Admin GUI). Multiple shells. Multiple results. link]. - Introducing MongoDB and LINQ at Mongo Seattle 2011
forgot to publish it on my … Continue reading → NoSQL.NET Conferences LINQ SpeakingHere’s a video of a short talk I gave at Mongo Seattle 2011 which is a quick getting started with.NET & MongoDB session. Enjoy! mkennedy PS – Yeah, it’s from last year. - Streaming XML using LINQ to XML (continued)
Richard Blewett reminded me that the XmlReader.ReadSubtree method makes it even easier to use LINQ to XML with a streaming approach. NET LINQThe code sample below will load nodes from an arbitrary XML files and yield them to the caller as they’re read from file: static IEnumerable Load( string filename, string elementName). {. XmlReaderSettings settings = new XmlReaderSettings(); settings.IgnoreWhitespace = true ; using (XmlReader reader = XmlReader.Create(filename, settings)). {. while (reader.ReadToFollowing(elementName)). {. // build element from subtree. DevelopMentor Courses - Tuesday, November 1, 2011 - The NoSQL Movement, LINQ, and MongoDB - Oh My!
Interact with the database using LINQ. Shortly we’ll look at an example where we build out a disconnected, offline RSS reader that uses MongoDB and LINQ to store its data. You have several options when choosing how to access MongoDB from.NET but generally that means using LINQ and a light-weight object-mapper on top of MongoDB itself. Then we’d use LINQ to SQL or Entity Framework to generate the ORM classes. We begin by generating the objects (Blog, RssEntry, etc) in memory and then serializing them via NoRM to MongoDB much as you would in LINQ to SQL. Ok, ok. Michael C. Kennedy's Weblog - Thursday, April 22, 2010 - LINQ: Convert list to a dictionary of lists
ToDictionary( x => x.Key, x => x.ToList() ); C# LINQSuppose I have a list of time cards from multiple employees, but I want to group them into dictionary, based on the Social Security Number (SSN) of the employee. Here is an example of how to convert a list of items into a dictionary of lists: Dictionary. dict; dict = ( from timecard in listOfTimeCards. group timecard by timecard.SSN ).ToDictionary( DevelopMentor Courses - Monday, July 11, 2011 %>
| | |