| |
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.
|
23 Articles match "LINQ"
See all articles with
"LINQ"
| The Latest from The Blomsma Code | MORE | | 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 Streaming XML I just rediscovered this blog post about reading and parsing XML as it becomes available in conjunction with LINQ to XML: [link]. It’s a little dated, but still relevant. DevelopMentor Courses - Monday, October 31, 2011 | | The Best from The Blomsma Code | MORE | | 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 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 | - Streaming XML
I just rediscovered this blog post about reading and parsing XML as it becomes available in conjunction with LINQ to XML: [link]. It’s a little dated, but still relevant. DevelopMentor Courses - Monday, October 31, 2011 - Entity Framework - Model First: One-to-One relationship
Entity Framework LINQIf you’re doing Model First with Entity Framework you may run into a scenario where you want to design a 1-to-1 relationship, but also have a foreign key be available on your entity. The default behavior in Entity Framework when doing a 1-to-1 relationship (with Model First), or 1-to-0.1 relationship, is to create a foreign key on the 0.1 side of the association but hide the foreign key. better approach is this: Start a new model. Add the entity that goes on the 1 side of the association, give it a primary key of type integer. Add the entity that goes on the 0.1 DevelopMentor Courses - Wednesday, June 29, 2011 - Logging and tracing with Entity Framework
Entity Framework LINQIf you’re using the Entity Framework and don’t want to implement ToTraceString() at strategic points in your code in order to see what kind of SQL statements are getting generated then check out one of the following: Community Entity Framework Provider Wrappers (free). link] /. Or use NuGet: Install-Package CommunityEFProviderWrappers.EFTracingProvider. Entity Framework Profiler. link]. DevelopMentor Courses - Wednesday, June 29, 2011 - Type-Safe Include extension method for Entity Framework
If you’re interested in the Include method in a LINQ to Entities queries to be type-safe, then Joe Ferner has the answer for you in this post: Type-Safe Entity Framework Include: [link]. Entity Framework DevelopMentor Courses - Tuesday, January 24, 2012 - 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 The Blomsma Code - Monday, October 31, 2011 - Registration for the 4th quarter MSDN (.NET) Northeast Roadshow has just opened up!
LINQ (Language INtegrated Query). Registration for the 4th quarter MSDN (.NET) NET) Northeast Roadshow has just opened up! This totally FREE event will be held on Tuesday, December 15th. Thankfully, we were able to secure more convenient hours this time around. The event will run from 9:00 am thru 3:30 pm in the Florian Hall of the Central Maine Commerce Center in Augusta. a.k.a. Public Safety/M.E.M.A) These events target.NET developers and analysts, or those actively training to become one. AGENDA. WCF (Windows Communications Foundation). Where to find help when you get stuck. The Blomsma Code - Monday, October 19, 2009 - Tools that make a developers life easier
must have for people using LINQ to SQL and Entity Framwork. Helps a lot with figuring out what the exact SQL statement is that get generated from your LINQ statement. Last night at the BAND ( www.bangordevelopers.com ) meeting we all did 10 minute presentations on the tool(s) we love as developers. On my list were: Total Commander, LinqPad, Microsoft Office (codegen with Excel rules :-)), VMWare & VirtualPC, Live Mesh. Also on the list should have been Reflector. Total Commander. Also much more reliable in FTP-ing large amounts of files than Windows Explorer. LinqPad. Love it! The Blomsma Code - Wednesday, August 26, 2009 %>
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. %>
| | |