Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • ASP.NET Podcast Show #95 - Jim Wooley on LINQ Part I (video and audio)

    Subscribe . <--What all the cool kids are doing. Original url: http://aspnetpodcast.com/CS11/blogs/asp.net_podcast/archive/2007/06/28/asp-net-podcast-show-95-jim-wooley-on-linq-part-i-video-and-audio.aspx Download WMV video . Download iPod video . Download MP3 audio . Show Notes: Part 1: In the past...
    Posted to Wallace B. McClure (Weblog) by Wallym on 06-28-2007, 12:00 AM
    Filed under: Databases, Podcasts, .NET, Community News, ASP.NET, ADO.NET, Orcas, .NET 3.5, LINQ
  • Use LINQ to XML to Generate Excel Documents

    I was looking for a quick and easy solution to export data from SQL into an Excel format from within my ASP.NET application. I came across a great video posted by Beth Massi on the asp.net website (Video #7 at the bottom at http://www.asp.net/learn/linq-videos/ ). Beth steps through creating the LINQ...
    Posted to Jason N. Gaylord's Blog (Weblog) by Jason N. Gaylord on 08-11-2008, 12:00 AM
    Filed under: Microsoft Office, .NET Languages, ASP.NET and ASP.NET MVC, LINQ, Databases
  • Using the LINQ Keyword "First"

    All day I was stumped on why there wasn't a simple way to grab the first object in a sequence other than using: .Take(1).Single Then I discovered the keyword First. I'm still a little puzzled as to why .Single would throw an exception if more than a single element would be returned. I can't really see...
    Posted to Jason N. Gaylord's Blog (Weblog) by Jason N. Gaylord on 07-08-2008, 12:00 AM
    Filed under: LINQ, Databases
  • LINQ to SQL and MS Small Business Server 2008 Talks at .NET Valley

    The next .NET Valley User Group event will be on June 18th at Scranton University in Scranton, Pennsylvania. There will be two talks that evening. The first will begin at 6pm and will be presented by Michael Murphy. Michael will talk about the ins and outs of Microsoft Small Business Server 2008. The...
    Posted to Jason N. Gaylord's Blog (Weblog) by Jason N. Gaylord on 06-13-2008, 12:00 AM
    Filed under: .NET Valley, Business, Community News, Desktop and Server Software, LINQ, User Group, Databases
  • Performance Tip: Return Only Necessary Columns Using LINQ

    I was running into an issue where one of my webmethods was taking a large amount of time to return a small set (5-10 objects). I was using LINQ to SQL. I noticed that the LINQ to SQL query was returning all of the rows. After looking into the table a bit further, I noticed that the table included some...
    Posted to Jason N. Gaylord's Blog (Weblog) by Jason N. Gaylord on 06-10-2008, 12:00 AM
    Filed under: LINQ, Tips and Tricks, Databases
  • A circular reference was detected while serializing an object of type 'XXX'

    I ran into an issue earlier when trying to return an entity class through a web service for use in an AJAX page. After some quick research, I came across a post by Darren Neimke that referenced Rick Strahl's post about LINQ to SQL and Serialization . For me, performing the first work-around and setting...
    Posted to Jason N. Gaylord's Blog (Weblog) by Jason N. Gaylord on 06-09-2008, 12:00 AM
    Filed under: JavaScript and JavaScript Libraries, LINQ, Databases
  • Retrieving SQL Type Image Using LINQ

    LINQ views the Image type in SQL Server as Binary. So, there are a few options that we have. We can either (a) modify our LINQ to SQL class and change the property to Byte() instead of Binary or we can (b) convert the Binary to an array. To do the latter, you can use a lambda expression to obtain the...
    Posted to Jason N. Gaylord's Blog (Weblog) by Jason N. Gaylord on 05-27-2008, 12:00 AM
    Filed under: ASP.NET and ASP.NET MVC, LINQ, Tips and Tricks, Databases
  • Using "Like" in LINQ to SQL

    I've recently discovered that LINQ and VB can be confusing. I was attempting to pull the top 10 rows of a table where the column started with 'W'. You'd think after I typed that, I'd figure out the solution. That's not the case. Instead, I struggled. Here's what I originally came up with: Dim q = From...
    Posted to Jason N. Gaylord's Blog (Weblog) by Jason N. Gaylord on 05-21-2008, 12:00 AM
    Filed under: LINQ, Databases
  • Using LINQ to SQL and ConnectionStrings in a Class Library

    I was looking to separate my LINQ to SQL data layer from the rest of my application. So, I decided to move the files to a class library. This way, when my application builds, all of my LINQ files are found in MyApp.DL or something similar. However, I wanted the class library to use the SQL connection...
    Posted to Jason N. Gaylord's Blog (Weblog) by Jason N. Gaylord on 05-20-2008, 12:00 AM
    Filed under: .NET Languages, ASP.NET and ASP.NET MVC, LINQ, Databases
  • Obtain the Identity of a New Row Using LINQ

    It's actually pretty easy and user friendly to obtain the value of the identity column using LINQ. After you create your object and insert it on submit, you can call the identity column's property on your object. For instance: Dim db As New BlogDataContext() db.BlogPosts.InsertOnSubmit(MyPost) db.SubmitChanges...
    Posted to Jason N. Gaylord's Blog (Weblog) by Jason N. Gaylord on 05-20-2008, 12:00 AM
    Filed under: .NET Languages, LINQ, Databases
Page 1 of 2 (14 items) 1 2 Next >