DotNetShoutout - Stories tagged with Linq
7
Shouts

Linq to Visual Tree | Colin Eberhardt's Adventures in WPF

published 1170 days, 1 hour, 52 minutes ago posted by FantasticMrFishFantasticMrFish 1172 days, 3 hours, 55 minutes ago
Saturday, March 06, 2010 4:04:10 PM GMT Thursday, March 04, 2010 2:00:48 PM GMT
This blog post demonstrates a Linq API which can be used to query the WPF / Silverlight Visual Tree. You can find a few other Linq to Visual Tree techniques on other blogs, but what makes this one unique is that it retains, and allows queries that make use of the tree like structure rather than simply flattening it. I have recently published an article on codeproject which describes a technique for generating Linq API for querying tree-like structures. This blog post makes use of a generated API for W... (more)
category: Metro | clicked: 1 | comment | | source: www.scottlogic.co.uk
tags: WPF, silveright, Linq
8
Shouts

The Weekly Source Code 51 - Asynchronous Database Access and LINQ to SQL Fun - Scott Hanselman

published 1172 days, 6 hours, 25 minutes ago posted by jantujantu 1173 days, 3 hours, 19 minutes ago
Thursday, March 04, 2010 11:31:14 AM GMT Wednesday, March 03, 2010 2:36:45 PM GMT
You can learn a lot by reading other people's source code. That's the idea behind this series, "The Weekly Source Code." You can certainly become a better programmer by writing code but I think good writers become better by reading as much as they can. I was poking around in the WebFormsMVPproject's code and noticed an interesting pattern.You've seen code to get data from a database and retrieve it as an object, like this:public Widget Find... (more)
category: Web Dev | clicked: 0 | comment | | source: www.hanselman.com
tags: ASP.NET ASP.NET MVC, Source code, Open Source, Linq
6
Shouts

Sharing the goodness that is VB Using Projections with Data Services in Visual Studio 2010 - Beth Massi

published 1172 days, 6 hours, 25 minutes ago posted by jantujantu 1173 days, 3 hours, 27 minutes ago
Thursday, March 04, 2010 11:31:14 AM GMT Wednesday, March 03, 2010 2:29:07 PM GMT
Using Projections with Data Services in Visual Studio 2010Published 02 March 10 03:49 PM Starting in Visual Studio 2008 Service Pack 1, you can create ADO.NET Data Services to easily expose data models via RESTful web services. So if you are building a remote CRUD data access layer then this is a technology that you're probably using or are looking into. I’ve written a lot about about data services in VS2008, my favorites are:Using ADO.NET Data ServicesADO.NET Data Services - Building a WPF ClientADO.NE... (more)
category: Smart Client | clicked: 0 | comment | | source: blogs.msdn.com
tags: ADO.NET Data Services, article, VS2010, WCF Data Services, DevCenter, Linq
4
Shouts

Data Points - Precompiling LINQ Queries

published 1178 days, 17 hours, 26 minutes ago posted by https://me.yahoo.com/mosessaur#7fe0dhttps://me.yahoo.com/mosessaur#7fe0d 1179 days, 19 hours, 7 minutes ago
Friday, February 26, 2010 12:30:00 AM GMT Wednesday, February 24, 2010 10:49:16 PM GMT
Did you know that by precompiling LINQ queries you might actually be degrading your app’s performance if you’re not careful? Julie Lerman explains how to ensure you’re not re-precompiling queries each time and losing the expected performance benefits across post-backs, short-lived service operations and other code where critical instances are going out of scope. (more)
category: How To | clicked: 0 | comment | | source: msdn.microsoft.com
tags: EF, Entity Framework, entityframework, MSDN, Linq, MSDN Magazine
5
Shouts

How to implement paging with LINQ

published 1181 days, 11 hours, 56 minutes ago posted by kcherupakcherupa 1182 days, 11 hours, 7 minutes ago
Tuesday, February 23, 2010 6:00:03 AM GMT Monday, February 22, 2010 6:48:52 AM GMT
Before going into how paging is implemented with LINQ, Let's discuss the need for implementing paging. With large amounts of data, it is not a good practice to pull all records from database when you are showing a fraction of them in one page. It is always recommended to use data on demand approach. When you want to show first 20 records out of the search results then you must get the first 20 records from database and discard the rest. Similarly when you want to show next 20 records of the search res... (more)
category: Agile | clicked: 0 | comment | | source: cherupally.blogspot.com
tags: Paging, C# 3.0, Linq
6
Shouts

Sorting a DataTable - LINQ performance | AdaTheDev

published 1181 days, 11 hours, 56 minutes ago posted by AdaTheDevAdaTheDev 1182 days, 23 hours, 57 minutes ago
Tuesday, February 23, 2010 6:00:03 AM GMT Sunday, February 21, 2010 5:58:49 PM GMT
There are a number of ways to sort the data within a DataTable and this article compares 3 ways to find out what the performance difference is between the different approaches, and which offers the most scalable solution. (more)
category: How To | clicked: 1 | comment | | source: www.adathedev.co.uk
tags: Performance, Linq, DataTable
3
Shouts

Code Tech Blog: How to read, insert, update and delete from an XML file Using LINQ to SQL

posted by hunterz85hunterz85 1190 days, 21 hours, 38 minutes ago
Saturday, February 13, 2010 8:17:52 PM GMT
This is an introduction to Linq to XML showing how to read, insert, update and delete from an XML file. (more)
category: Web Dev | clicked: 0 | comment | | source: codetechblg.blogspot.com
tags: XML, Linq to XML, Linq, ASP.NET
3
Shouts

Code Tech Blog: Inline Editing Using jQuery and Ajax in Repeater control

posted by hunterz85hunterz85 1190 days, 21 hours, 40 minutes ago
Saturday, February 13, 2010 8:16:04 PM GMT
Repeater control is one of the light weight control when compared to the other databound controls. It provides more flexibility on the layout of data displayed and the control itself will not render any additional HTML like GridView and DataList control do. It only renders the HTML we specified in the template columns which makes it light weight when compared to other controls. RRepeater control as such will not provide edit/update functionalities for the data. In this article, we will overcome this di... (more)
category: Web Dev | clicked: 3 | comment | | source: codetechblg.blogspot.com
tags: Repeater, jQuery, Ajax, Linq, ASP.NET
6
Shouts

Working with transactions in Entity Framework and LINQ to SQL

published 1194 days, 7 hours, 26 minutes ago posted by DevartDevart 1195 days, 3 hours, 58 minutes ago
Wednesday, February 10, 2010 10:29:29 AM GMT Tuesday, February 09, 2010 1:57:48 PM GMT
Entity Framework In this article we consider a short description of the Entity Framework and LINQ to SQL transactional models. There are also some simple code listings illustrating different aspects of the transactional model. A transaction is a series of operations performed as a single unit of work. Entity Framework transactions are a part of its internal architecture. The SaveChanges method operates within a transaction and saves results of the work. It is designed to ensure data integrity. (more)
category: Architecture | clicked: 290 | comment | | source: www.devart.com
tags: Entity Framework, Database, Linq
4
Shouts

A few new tools in my .NET development toolbox

posted by http://webpoet.myopenid.com/http://webpoet.myopenid.com/ 1196 days, 10 hours ago
Monday, February 08, 2010 7:56:10 AM GMT
Lately I’ve been working on a very interesting project along with quite a few great developers that I haven’t had the pleasure of working with before. Apart from it having been, and still is, very instructive and a lot of fun the experience has also opened my eyes to a few great tools for .NET development that I haven’t used before. (more)
category: Web Dev | clicked: 0 | comment | | source: joelabrahamsson.com
tags: Tools, Log4net, dottrace, Linq
7
Shouts

Performance: Using dynamic code to copy property values of two objects

published 1201 days, 7 hours, 11 minutes ago posted by gpeipmangpeipman 1201 days, 18 hours, 5 minutes ago
Wednesday, February 03, 2010 10:45:04 AM GMT Tuesday, February 02, 2010 11:51:01 PM GMT
Last year I wrote short posting about how to use LINQ to find matching properties of two objects. In this posting I will show you how to copy values from one object to another and how to boost up performance so you can use this strategy also on in servers under heavy load. (more)
category: How To | clicked: 1 | comment | | source: weblogs.asp.net
tags: .NET, Performance, Reflection, Linq
7
Shouts

Technical Jargon » Linq to Sql and ASP.NET MVC – AutoCommit and the RoutePreParser

published 1202 days, 5 hours, 56 minutes ago posted by ali62bali62b 1202 days, 11 hours, 47 minutes ago
Tuesday, February 02, 2010 12:00:23 PM GMT Tuesday, February 02, 2010 6:08:52 AM GMT
This is the second in a series of posts on using ASP.NET MVC with Linq to Sql: Part 1 – DataContext Per RequestPart 2 – AutoCommit and the RoutePreParser In my previoust post, I demonstrated how you could scope a Linq to Sql DataContext to a single HTTP Request by using StructureMap to manage the lifetime of the DataContext instance. This often works well, but has a couple of gotchas. Let’s take a look at an example: publicclass PostController : Controller {privatereadonly BlogDataContext context;   ... (more)
category: Web Dev | clicked: 0 | comment | | source: www.jeremyskinner.co.uk
tags: ASP.NET MVC, Linq To SQL, Linq
7
Shouts

Technical Jargon » Linq to Sql and ASP.NET MVC – DataContext Per Request

published 1203 days, 4 hours, 12 minutes ago posted by ali62bali62b 1204 days, 1 hour, 34 minutes ago
Monday, February 01, 2010 1:44:24 PM GMT Sunday, January 31, 2010 4:22:12 PM GMT
This is the first in a series of posts about using Linq to Sql with ASP.NET MVC. When using an ORM tool within a web application, it’s often common to scope a unit of work to the lifetime of an HTTP Request. If you’re using Linq to Sql and ASP.NET MVC, you can achieve this by using an Inversion of Control container in conjunction with an ActionFilter. For this example, I’m going to be using the StructureMap IoC container alongside a fictional “Blog” database. Firstly, you’ll need to configure St... (more)
category: Web Dev | clicked: 2 | comment | | source: www.jeremyskinner.co.uk
tags: ASP.NET MVC, Linq To SQL, Linq
5
Shouts

Code Tech Blog: Custom Paging in GridView Using LINQ

published 1202 days, 5 hours, 56 minutes ago posted by hunterz85hunterz85 1205 days, 23 hours, 2 minutes ago
Tuesday, February 02, 2010 12:00:23 PM GMT Friday, January 29, 2010 6:53:44 PM GMT
LINQ to SQL is another capability which we can use to manage the relational database object as .net object. We can query, insert, update and delete the underlying database object with these classes. When we query/update/delete these .net object, LINQ to SQL will automatically take care of the underlying relational data objects operations. In short, LINQ to SQL provides an Object-Relational Mapping (O/R Mapping) which maps objects of different type system. In our case, it is relational to object oriented ... (more)
category: Web Dev | clicked: 6 | comment | | source: codetechblg.blogspot.com
tags: Custom Paging, GridView, Linq, Linq Data Source, ASP.NET
8
Shouts

Code Tech Blog: Custom Paging And Jump to a Page Using LINQ (SEO Friendly Custom Paging)

published 1210 days, 5 hours, 44 minutes ago posted by hunterz85hunterz85 1212 days, 23 hours, 16 minutes ago
Monday, January 25, 2010 12:11:40 PM GMT Friday, January 22, 2010 6:39:28 PM GMT
The main disadvantage of the custom paging in my previous article is, the pager links are not simply a hyper link to a page. Instead, they are associated with javascript which makes a postback to bind the current page records and thus making it not search engine friendly. A link is search engine friendly if it has a target page associated with it through href property. Search engines will automatically reach the target page and will index those pages in this case. Moving forward, in this article we wil... (more)
category: Web Dev | clicked: 4 | comment | | source: codetechblg.blogspot.com
tags: Custom Paging, GridView, SEO Paging, Linq, Linq Data Source, ASP.NET
2
Shouts

Code Tech Blog

posted by hunterz85hunterz85 1212 days, 23 hours, 23 minutes ago
Friday, January 22, 2010 6:33:17 PM GMT
The main disadvantage of the custom paging in my previous article is, the pager links are not simply a hyper link to a page. Instead, they are associated with javascript which makes a postback to bind the current page records and thus making it not search engine friendly. A link is search engine friendly if it has a target page associated with it through href property. Search engines will automatically reach the target page and will index those pages in this case. Moving forward, in this article we wil... (more)
category: Web Dev | clicked: 2 | comment | | source: codetechblg.blogspot.com
tags: Custom Paging, search engine optimisation (seo), GridView, ASP.NET 3.5, SEO Paging, Linq, Linq Data Source
7
Shouts

Populating a DropDownList with Linquify and the Entity Framework in C# ASP .NET

published 1215 days, 8 hours, 14 minutes ago posted by surfer6surfer6 1216 days, 1 hour, 6 minutes ago
Wednesday, January 20, 2010 9:41:33 AM GMT Tuesday, January 19, 2010 4:49:38 PM GMT
Linquify is a Visual Studio add-in and business class generator for LINQ to SQL and the Entity Framework. In this tutorial, walk through setting up a basic ASP .NET web application which populates a DropDownList control with people from a database, using Linquify and the Entity Framework. (more)
category: Web Dev | clicked: 9 | comment | | source: www.primaryobjects.com
tags: Entity Framework, C#, ASP .NET, linquify, Linq
6
Shouts

Code Tech Blog: Using GroupBy in LINQDataSource Control

published 1214 days, 7 hours, 26 minutes ago posted by hunterz85hunterz85 1217 days, 3 hours, 14 minutes ago
Thursday, January 21, 2010 10:30:12 AM GMT Monday, January 18, 2010 2:42:09 PM GMT
My previous article Using Stored Procedure with LINQDataSource Control in ASP.Net discussed on using stored procedures when using LINQDataSource control. Grouping data is one of the most common activities we do with any data driven websites. LINQDataSource control allows us to group data based on one or more columns with the help of GroupBy property and Select property. Moving forward, we will see how to group the data when using LinqDataSource control. To understand the topic, we will create a ... (more)
category: Web Dev | clicked: 2 | comment | | source: codetechblg.blogspot.com
tags: Linq, grouping, Linq Data Source, ASP.NET
9
Shouts

Code Capers | The Missing LINQ - Beware of Generated Code

published 1218 days, 5 hours, 42 minutes ago posted by mceranskimceranski 1221 days, 1 hour, 49 minutes ago
Sunday, January 17, 2010 12:14:07 PM GMT Thursday, January 14, 2010 4:07:16 PM GMT
LINQ (Language Integrated Query) to SQL is a great tool because it allows developers to concentrate on business problems instead of worrying about writing SQL. Unfortunately, generated code typically comes with a catch. My general rule of thumb is that "I never trust any tools that have a wizard or generate code". After all, everytime you release code into production you are putting your reputation on the line. Therefore, don't you think it is important to know what your code is really doing under the co... (more)
category: Data | clicked: 1 | comment | | source: www.codecapers.com
tags: Performance, Linq
9
Shouts

The dynamic duo: LightSpeed & Azure

published 1220 days, 5 hours, 1 minute ago posted by traskjdtraskjd 1221 days, 15 hours, 46 minutes ago
Friday, January 15, 2010 12:54:58 PM GMT Thursday, January 14, 2010 2:10:16 AM GMT
Describes how LightSpeed and the Windows Azure platform work happily together with details on running LightSpeed based web/worker roles with the Azure partial trust policy. (more)
category: Architecture | clicked: 0 | comment | | source: www.mindscape.co.nz
tags: LightSpeed, Linq, Mindscape, Azure