Click here to Skip to main content
       

LINQ

 
AnswerRe: How to execute LINQ query when I have the table`s name stored in a variable PinmemberMWRivera23-Mar-12 9:44 
Questionpopulate dictionary from the intersection of two list collections Pinmembersiva45530-Jan-12 6:12 
SuggestionRe: populate dictionary from the intersection of two list collections PinmemberDean Oliver30-Jan-12 7:23 
SuggestionRe: populate dictionary from the intersection of two list collections PinmemberPeace ON23-Mar-12 3:11 
Questiontrouble to get data from stored procedure with linq Pinmembersanjumake2326-Dec-11 23:53 
AnswerRe: trouble to get data from stored procedure with linq PinmemberPeace ON23-Mar-12 3:13 
QuestionLinq to SQL filter by logged in user in web forms Pinmemberfrazzle-me20-Dec-11 1:55 
AnswerRe: Linq to SQL filter by logged in user in web forms PinmemberWayne Gaylard20-Dec-11 19:18 
GeneralRe: Linq to SQL filter by logged in user in web forms Pinmemberfrazzle-me21-Dec-11 11:06 
QuestionRe: Linq to SQL filter by logged in user in web forms Pinmemberfrazzle-me10-Jan-12 3:30 
AnswerRe: Linq to SQL filter by logged in user in web forms PinmemberWayne Gaylard10-Jan-12 18:34 
QuestionDeclare TimeStamp in dbml Pinmembersiva4555-Dec-11 6:25 
QuestionExecute a LINQ query using T-SQL code in the LINQ expression Pinmemberjonatan_55628-Nov-11 1:06 
Questionlinq problem Pinmemberrama201123-Nov-11 19:37 
Hi all,
 
i want to bind datatable using linq query, can you please have a look on below mentioned query ,i am getting error.
 
public DataTable BindCustomername()
{
DataClasses1DataContext odeptdataclass = new DataClasses1DataContext();
DataTable odtname = new DataTable();
var name = from p in odeptdataclass.Tbldepts
select new
{
p.deptid,
p.deptname
 
};
odtname = name.ToString();
return odtname;
 
}
 
i am getting Error:Cannot implicitly convert type 'string' to 'System.Data.DataTable'
 
how to do that give me idea.
 
Thanks
Rama
AnswerRe: linq problem PinmemberWayne Gaylard23-Nov-11 19:55 
GeneralRe: linq problem [modified] Pinmemberrama201123-Nov-11 20:18 
GeneralRe: linq problem PinmemberWayne Gaylard23-Nov-11 20:27 
AnswerRe: linq problem Pinmemberemardini1-Dec-11 10:56 
AnswerRe: linq problem Pinmemberwazb10-Feb-12 0:21 
GeneralRe: linq problem PinmemberPeace ON23-Mar-12 18:01 
QuestionHow to know whether a string is a substring of list of strings. PinmemberNarVish1-Nov-11 1:59 
AnswerRe: How to know whether a string is a substring of list of strings. PinmemberWayne Gaylard1-Nov-11 3:14 
AnswerRe: How to know whether a string is a substring of list of strings. Pinmemberemardini5-Dec-11 16:58 
GeneralRe: How to know whether a string is a substring of list of strings. PinmemberBillWoodruff29-Jan-12 13:16 
AnswerRe: How to know whether a string is a substring of list of strings. PinmemberYospeh28-Jun-12 10:50 
QuestionC# datacontext with linq? Pinmemberdcof26-Oct-11 10:34 
QuestionIssue with Imultiple Results Pinmembersiva4551-Oct-11 18:07 
AnswerRe: Issue with Imultiple Results PinmemberCollin Jasnoch28-Oct-11 7:09 
QuestionCopytodatatable usage in VB Pinmemberahawth23-Sep-11 16:31 
AnswerRe: Copytodatatable usage in VB PinmemberMycroft Holmes14-Nov-11 13:21 
AnswerRe: Copytodatatable usage in VB Pinmemberprasun.r13-Dec-11 23:56 
QuestionSerializing Linq PinmemberFlorian Leeber13-Sep-11 2:47 
AnswerRe: Serializing Linq PinmemberMember 362806421-Nov-11 7:44 
QuestionLogin Page with the help of Linq PinmemberSumit Gohil18-Aug-11 8:38 
AnswerRe: Login Page with the help of Linq PinmemberSimon Bang Terkildsen19-Aug-11 3:35 
AnswerRe: Login Page with the help of Linq Pinmemberamitgajjar25-Dec-11 23:13 
QuestionHow to sum field in already exist Linq result [modified] PinmemberSam Martini19-Jul-11 0:19 
AnswerRe: How to sum field in already exist Linq result PinmemberSam Martini19-Jul-11 23:12 
QuestionFind specific table in .dbml PinmemberSteve van Niman13-Jul-11 9:45 
AnswerRe: Find specific table in .dbml Pinmemberharinit13-Sep-11 0:42 
GeneralRe: Find specific table in .dbml PinmemberSteve van Niman13-Sep-11 4:12 
QuestionWhy Linq to SQL? PinmemberTad McClellan12-Jul-11 13:01 
AnswerRe: Why Linq to SQL? PinmvpMark Nischalke13-Jul-11 1:56 
QuestionGet Current Identity value of the table using LINQ. Pinmembermadhubabu29-Jun-11 8:38 
AnswerRe: Get Current Identity value of the table using LINQ. PinmvpAspDotNetDev29-Jun-11 10:04 
QuestionHow to add data to a table using LINQ (EF 4.1) PinmemberMort.Strom5-Jun-11 10:55 
AnswerRe: How to add data to a table using LINQ (EF 4.1) PinmemberAnnieMacD6-Jun-11 12:42 
GeneralRe: How to add data to a table using LINQ (EF 4.1) PinmvpPete O'Hanlon6-Jun-11 20:05 
GeneralRe: How to add data to a table using LINQ (EF 4.1) PinmemberAnnieMacD7-Jun-11 2:55 
GeneralRe: How to add data to a table using LINQ (EF 4.1) PinmvpPete O'Hanlon9-Jun-11 10:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 27 Jun 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid