No announcements
Found 6416 threads
-
0 Votes
Linq to SQL - Passing current date time to DB on insert
Hi, We want to insert current date time value to the table for 2 columns on insertion. But it fails with an exception "SqlDateTime ...Answered | 1 Replies | 4640 Views | Created by Shanthi dhanus - Friday, August 2, 2013 6:25 AM | Last reply by Fernando Soto - MCSD - Friday, August 2, 2013 1:27 PM -
2 Votes
c # using linq to group by multiple columns in a datatable
0 down vote favorite I have three columns in a ...Answered | 3 Replies | 32400 Views | Created by Sam4407 - Friday, July 1, 2011 6:06 PM | Last reply by Fernando Soto - MCSD - Wednesday, July 31, 2013 1:21 PM -
0 Votes
Linq to Entities with a conditional and in a contains clause
Just wondering if it's possible to not have to use an if statement when a list is empty. Is where some way to have conditional logic in the Where statement? For ...Answered | 2 Replies | 2419 Views | Created by Corey G DW - Friday, July 19, 2013 2:59 PM | Last reply by Fernando Soto - MCSD - Monday, July 22, 2013 7:19 PM -
0 Votes
LINQ & C# - How to get object from list based on object variables?
So I have been looking for answers to this question for nearly an hour but with no avail. I think its mainly because I'm not 100% sure what I'm looking for but I've tried numerous answers and nothing ...Answered | 4 Replies | 56672 Views | Created by here.to.code - Friday, July 12, 2013 6:34 PM | Last reply by The Real Coder - Monday, July 15, 2013 6:13 PM -
0 Votes
diferences
Hi, what is the different beween Express 2012 for web and VS express for Desktop? Thanks, JeeAnswered | 1 Replies | 1364 Views | Created by jeet03 - Sunday, July 14, 2013 4:37 PM | Last reply by Fernando Soto - MCSD - Sunday, July 14, 2013 5:49 PM -
0 Votes
How can I convert following code into Linq
int[] intList = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; for (int i = 0; iAnswered | 2 Replies | 1887 Views | Created by Jeeva Jose - Sunday, July 7, 2013 9:52 AM | Last reply by Michael Samteladze - Wednesday, July 10, 2013 10:01 AM -
1 Votes
List within list
Hey. I have two tournaments and each tournament has three seasons var model = (from tournament in _repo.Tournaments from season in ...Answered | 7 Replies | 1410 Views | Created by Lukeoooo - Friday, June 28, 2013 2:23 PM | Last reply by Fernando Soto - MCSD - Friday, June 28, 2013 8:23 PM -
1 Votes
IGrouping confusion
I'm baffled. I sort of understand LINQ groupings, can create them and see them in debug etc. BUT I cannot find any way to access the list of elements that match a ...Answered | 3 Replies | 15166 Views | Created by Captain Kernel - Saturday, March 21, 2009 11:35 AM | Last reply by ILiveStrong - Friday, June 28, 2013 8:46 AM -
0 Votes
Adding extra conditions to WHERE clause of LINQ query
Hi everybody, I can not find good forum where to post this question, so here it goes. I found somewhat related problem on ...Answered | 4 Replies | 9482 Views | Created by Naomi N - Tuesday, June 25, 2013 3:49 AM | Last reply by Chester Hong - Friday, June 28, 2013 7:45 AM -
0 Votes
LINQ: Intersect method without duplicate removal
I need to be able to find values common to both of two arrays, but not lose the duplicates. For example, if I have the following ...Answered | 3 Replies | 2629 Views | Created by Nathan Sokalski - Friday, June 21, 2013 7:58 PM | Last reply by Chester Hong - Wednesday, June 26, 2013 10:31 PM -
2 Votes
Read XML Tag values using C# LINQ
Hello Expert, I have following XML <myxml> <LocationList> <Location>7</Location> </LocationList> ...Answered | 12 Replies | 26861 Views | Created by Alex Cardo - Saturday, May 25, 2013 12:23 PM | Last reply by Fernando Soto - MCSD - Monday, June 24, 2013 5:22 PM -
5 Votes
New LINQ Forums
We've created a couple new LINQ forums to help better answer your questions about the specific LINQ implementations. For LINQ to SQL see the LINQ to SQL forum at ...Discussion | 13 Replies | 36950 Views | Created by Annie Brooks - Saturday, March 1, 2008 12:15 AM | Last reply by Naomi N - Monday, June 24, 2013 3:44 PM -
2 Votes
Return the number of rows from a LINQ query
How do I determine the number of rows returned by a LINQ query? For example, if I have Dim query = From cust In db.Customers Select cust.CompanyName How ...Answered | 9 Replies | 60126 Views | Created by gfrizzle - Friday, January 4, 2008 10:02 PM | Last reply by Naomi N - Monday, June 24, 2013 2:19 PM -
0 Votes
LINQ two "where" clauses
I have a table of applications (ODAP_tblApps) that has the same data as a treeview control I am looping through. I want to insert each node name to a new table (ODAP_tblUserApp). The nodes ...Answered | 3 Replies | 2291 Views | Created by blabbermouth - Tuesday, June 18, 2013 10:07 AM | Last reply by blabbermouth - Friday, June 21, 2013 12:17 PM -
1 Votes
LINQ query to sort data by a column - Column value is other move records to last row
Hi, I using LINQ to read data from a file. I process the rows one by one to write output file. I want to sort the results in this table based on product category. ...Answered | 1 Replies | 5033 Views | Created by Ashok K - Thursday, June 20, 2013 3:11 PM | Last reply by Michael Samteladze - Friday, June 21, 2013 8:02 AM -
0 Votes
LINQ To SQL - Trigger Firing Problem
Hi everyone! I have a big problem here: I have a trigger in SQL Server 2005 EE which updates another table if updates to a specific table are done. The ...Answered | 19 Replies | 15509 Views | Created by Buster1979 - Saturday, July 21, 2007 11:28 AM | Last reply by Pandurang Kumbhar - Saturday, June 15, 2013 11:21 AM -
0 Votes
DLinq and memory leaking.
Hi! See this code: customer = new Customer(); customer.Name = "Danilo"; WeakReference wk = new WeakReference(customer); customer = ...Answered | 8 Replies | 5586 Views | Created by danskcarvalho - Sunday, September 23, 2007 5:55 PM | Last reply by TravisWhidden - Wednesday, June 12, 2013 1:21 AM -
0 Votes
Lambda Error "Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access"
new { GetEditedGlAccount(d.GlAccount), d.PtmsAccountType }) Thanks. DanyeungAnswered | 9 Replies | 14330 Views | Created by danyeungw - Wednesday, June 5, 2013 3:41 PM | Last reply by danyeungw - Tuesday, June 11, 2013 6:12 PM -
0 Votes
Build error "Cannot convert lambda expression to type 'string' because it is not a delegate type" when checking in to TFS
t.TreatmentTimes).ToList(); instead of: var treatments = db.Treatments.Include("TreatmentTimes").ToList(); When I check in to my TFS ...Answered | 4 Replies | 4756 Views | Created by ekenman - Wednesday, March 20, 2013 6:00 AM | Last reply by ekenman - Tuesday, June 11, 2013 5:49 PM -
1 Votes
LINQ query - Get data from a set of repeated column in a DataTable
Hi, I am working on a .NET 4.0 application. I use the following LINQ query to extract data from DataTable. Save the data in a excel document and ...Unanswered | 3 Replies | 3288 Views | Created by Ashok K - Monday, June 10, 2013 1:23 PM | Last reply by Fernando Soto - MCSD - Tuesday, June 11, 2013 2:34 PM
No announcements