| |
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.
|
3 Articles match "LINQ"
See all articles with
"LINQ"
| The Latest from Jason Diamond | MORE | | Processing Text Files with LINQ Pretty boring stuff, so my mind started to wander and I started thinking about the loops I was writing and how I could replace them with LINQ. With all of this information, we might write code like the following (without using any LINQ): using (StreamReader reader = new StreamReader("ratings.list", Encoding.GetEncoding("iso-8859-1"))) { bool inReport = false; Regex votesAndTitleRegex = new Regex(@"^ {6}.{10}s+(d+)s+d{1,2}.d The first thing we need is a way to convert the lines in a text file into an IEnumerable<T> –without that, LINQ won’t be possible. Jason Diamond - Sunday, September 7, 2008 Dynamic Sorting with LINQ I’ve been working with ASP.NET MVC and LINQ recently and was working on a controller action that “returned a collection of objects (wrapped in a JsonResult ). The dictionary needs to hold expression trees and not “raw delegates in order for LINQ to SQL to be able to generate the correct query when it finally gets around to executing it. One potential problem: if orderByKey names a property that doesn’t exist on the object or a property that returns an object that LINQ to SQL can’t order by, a runtime exception will be thrown. break; }. Jason Diamond - Monday, September 1, 2008 | | The Best from Jason Diamond | MORE | | Dynamic Sorting with LINQ I’ve been working with ASP.NET MVC and LINQ recently and was working on a controller action that “returned a collection of objects (wrapped in a JsonResult ). The dictionary needs to hold expression trees and not “raw delegates in order for LINQ to SQL to be able to generate the correct query when it finally gets around to executing it. One potential problem: if orderByKey names a property that doesn’t exist on the object or a property that returns an object that LINQ to SQL can’t order by, a runtime exception will be thrown. break; }. Jason Diamond - Monday, September 1, 2008 Processing Text Files with LINQ Pretty boring stuff, so my mind started to wander and I started thinking about the loops I was writing and how I could replace them with LINQ. With all of this information, we might write code like the following (without using any LINQ): using (StreamReader reader = new StreamReader("ratings.list", Encoding.GetEncoding("iso-8859-1"))) { bool inReport = false; Regex votesAndTitleRegex = new Regex(@"^ {6}.{10}s+(d+)s+d{1,2}.d The first thing we need is a way to convert the lines in a text file into an IEnumerable<T> –without that, LINQ won’t be possible. Jason Diamond - Sunday, September 7, 2008 | %>
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]. - 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 - What’s new in.NET Framework 4.5
click for larger version): NET ASP.NET C# LINQ VB.NET WCF WF WPFJust came across this great picture of what’s new in.NET Framework 4.5 DevelopMentor Courses - Monday, October 31, 2011 - 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 - 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. %>
| | |