Topic profile page for LINQ.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: LINQ.
Topic "Linq" was discussed 11,075 times on 716 sites in last 3 months
Started 1 day, 13 hours ago (2009-12-01 02:48:00)
by jeffersante
I'm using LINQ to SQL in a WPF project and need to send a summary email once a week. I'm running into problems with the following code: Dim _dc As DataClasses1DataContext = New DataClasses1DataContext() Dim empls = From emp In _dc.Employees Select emp Dim startOfWeek = DateTime.Now.Subtract(TimeSpan.FromDays(7)) Dim summaries = From d In _dc.view_...
Started 1 day, 14 hours ago (2009-12-01 01:08:00)
by code_warrior
Hi friend, If i have the choice of using LINQ and SQL queries which one should i use to contribute to increase the performance of the application? cheers
Started 1 day, 19 hours ago (2009-11-30 20:44:00)
by damianrflynn
Hello, I have a generic list object filled with account names: private List accountNamesChecked I want to use LINQ to sum the current allocations of each account in 'accountNamesChecked' based on the contents of the following list: private List accountNamesAndAllocations The list 'accountNamesAndAllocations' contains a number of instances of the following ...
Started 2 days, 2 hours ago (2009-11-30 13:41:00)
by allmhuran
Preface: I looked for an appropriate LINQ board, but this is not specifically about LINQ to Entities or LINQ to XML, its just about LINQ to simple in memory objects. If there's a better place I won't be offended if someone suggests it. Say I have a class containing a row of denormalized data, like so: Class RecipeRow { public string recipeName; public string instructions; public ...
Started 2 days, 5 hours ago (2009-11-30 10:48:00)
by kinl99
Hi, I`m trying to bind a Linq-to-Sql-Query to a dataGridView var ma_fest = from m in db.Table where m.Field != "string" select m; Everythings been working fine so far, but if I change my query to var ma_fest = from m in db.Table where m.Field != "string"...
Started 2 days, 5 hours ago (2009-11-30 10:15:00)
by Ishteyak ahmad
Can some one give me VB Equivalent of C# code which is there in this site: http://blogs.msdn.com/lukeh/archive/2007/10/01/tak ing-linq-to-objects-to-extremes-a-fully-linqified- raytracer.aspx
Started 2 days, 8 hours ago (2009-11-30 07:19:54)
by imperialx
Hello, Why I'm getting this overload error "Overload resolution failed because no accessible 'Where' can be called with these arguments:" when using the Where clause in LINQ. Dim sports = From sportAttire In _dbSportsAttire _ Select New With { _ .Id = sportAttire.spID } For x As Integer = 0 To 3 Dim spID As Integer = x ...
Started 4 days, 5 hours ago (2009-11-28 10:27:35)
by meegho
I'm new in using LINQ and I need to solve the following case or I don't know may be I need to change my hole approach I have 2 entitie Partener and Customer on my DB. Customer has a FK from Partner , I dragged them to dbml file then I created my own classes using the DataContext, frist class RepositoryPartner and seconed one RepositoryCustomer which has instance from RepositoryPartner i need ...
Started 5 days, 13 hours ago (2009-11-27 02:48:00)
by ywndotno
Hi I am fairly new to asp programming and having a headache with this Linq query: I'm trying to get the average price from a list of prices: from (THIS SHOULD BE A LINK) MSDN: How to: Count, Sum, or Average Data by Using LINQ (Visual Basic) I understand i have to write the code like this: dim averagePrice = Aggregate price In db.items Into Average() I have also tried with: dim ...
Started 1 week, 1 day ago (2009-11-24 04:05:00)
by yns.emre
i want to know how to get linq query to a class property,if i do like this "private IEnumarable query;" it gives error "The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?)" what should i do to make a property of linq query in a class ? i dont want a method because i am doing a web control so i should get query from a property...
Started 6 days, 14 hours ago (2009-11-26 01:06:00)
by svmali
Hi All, I just started developing my web application with .net 3.5 and VS 2008.I worked on 2.0 and VS 2005. Can anyone know how can I build the 3-tier approach in .net 3.5 using LINQ.If anyone found a good example of this on net please share. Regards
Started 6 days, 17 hours ago (2009-11-25 22:09:48)
by JBeckton
I have followed this tutorial by Scott pretty much to the T against my own database. http://weblogs.asp.net/scottgu/archive/2007/08/27/ linq-to-sql-part-8-executing-custom-sql-expression s.aspx I am getting an error in my Partial class. The name 'ExecuteQuery' does not exist in the current context. I cannot for the life of me figure out what went wrong. public partial class ...
Started 6 days, 8 hours ago (2009-11-26 07:50:00)
by SkykeN
Hallo, I took over a project from someone and I have to change the database (add columns, add associations,...). Now when I work with linq I make an SQL diagram in SQL first and then make the linq database model so when I change something I just delete the model and let VS automaticly generate a new one with the modifications. But this guy made all connections and so in the LINQ DBML itself so...
Started 6 days, 21 hours ago (2009-11-25 18:18:45)
by eloquera
A new version of the Eloquera database 2.5.0 now supports LINQ http://www.eloquera.com Now you can run the query like this: var movies = from Movie m in db where m.Title == "Joe" orderby m.Year select m; Don't forget, you need Microsoft .NET 3.5 SP1 to run this version of Eloquera Database.
Started 6 days, 9 hours ago (2009-11-26 06:36:00)
by epb1
Hi guys, I use LINQ to SQL and Dynamic Data controls. I have created a partial class that represents a table in my database. The table has three datetime fields (among some other fields that are not relevant in this matter): MyDate, MyDateSet and LastModified. MyDate and MyDateSet are nullable while LastModified is not nullable. MyDate is to be updated by the user while MyDateSet and ...
Started 5 days, 6 hours ago (2009-11-27 09:02:00)
by neeraj_kumar_it
Hi I'm using LINQ to sql var advisorsList = (from rec in aeweb.AutoHarvestFILists join c in CashEdgeList on rec.AdvisorID equals c.CeAssignedID select new { rec.FIName, rec.AutoHarvestFI_ID, rec.AdvisorID }); AdvisorList AdvisorsList = new AdvisorList(); foreach (var a in advisorsList) ...