Click here to Skip to main content
15,890,436 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Slow WPF performance. Please Help Pin
#realJSOP4-Aug-09 1:06
mve#realJSOP4-Aug-09 1:06 
GeneralRe: Slow WPF performance. Please Help Pin
Etienne_1235-Aug-09 2:32
Etienne_1235-Aug-09 2:32 
QuestionLINQ Pin
sunil.n.cs4-Aug-09 0:44
sunil.n.cs4-Aug-09 0:44 
AnswerRe: LINQ Pin
Michael Sync4-Aug-09 1:27
Michael Sync4-Aug-09 1:27 
GeneralRe: LINQ Pin
sunil.n.cs4-Aug-09 2:32
sunil.n.cs4-Aug-09 2:32 
GeneralRe: LINQ Pin
Michael Sync4-Aug-09 4:24
Michael Sync4-Aug-09 4:24 
GeneralRe: LINQ Pin
sunil.n.cs4-Aug-09 18:09
sunil.n.cs4-Aug-09 18:09 
AnswerRe: LINQ Pin
Pete O'Hanlon4-Aug-09 22:05
mvePete O'Hanlon4-Aug-09 22:05 
As Michael said, you need to do:Return matchingLogin.ToList(). The reason you have to do this is because Linq uses a technique called deferred execution (please Google and have a read about this feature), which means that matchingLogin is actually IQueryable(Of tbl_User).

If you think about this, it makes a lot of sense because there are so many different operations that you could perform here on your select that you need to tell it which one you want. For instance, you could return a single row using SingleOrDefault. The onus is on you to tell the query which one you want, hence you use Return matchingLogin.ToList().

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



GeneralRe: LINQ Pin
sunil.n.cs4-Aug-09 22:52
sunil.n.cs4-Aug-09 22:52 
GeneralRe: LINQ Pin
Pete O'Hanlon4-Aug-09 23:50
mvePete O'Hanlon4-Aug-09 23:50 
GeneralRe: LINQ Pin
sunil.n.cs5-Aug-09 1:00
sunil.n.cs5-Aug-09 1:00 
GeneralRe: LINQ Pin
Pete O'Hanlon5-Aug-09 1:28
mvePete O'Hanlon5-Aug-09 1:28 
GeneralRe: LINQ Pin
sunil.n.cs5-Aug-09 1:50
sunil.n.cs5-Aug-09 1:50 
GeneralRe: LINQ Pin
Pete O'Hanlon5-Aug-09 2:13
mvePete O'Hanlon5-Aug-09 2:13 
GeneralRe: LINQ Pin
sunil.n.cs5-Aug-09 3:11
sunil.n.cs5-Aug-09 3:11 
QuestionHow can I set my dynamic images in random position? Pin
Kunal Chowdhury «IN»3-Aug-09 21:13
professionalKunal Chowdhury «IN»3-Aug-09 21:13 
AnswerRe: How can I set my dynamic images in random position? Pin
Christian Graus3-Aug-09 22:47
protectorChristian Graus3-Aug-09 22:47 
QuestionHow i can add new buttons to my epander control Pin
wasimsharp3-Aug-09 20:40
wasimsharp3-Aug-09 20:40 
AnswerRe: How i can add new buttons to my epander control Pin
Super Lloyd4-Aug-09 0:47
Super Lloyd4-Aug-09 0:47 
GeneralRe: How i can add new buttons to my epander control Pin
wasimsharp4-Aug-09 1:27
wasimsharp4-Aug-09 1:27 
GeneralRe: How i can add new buttons to my epander control Pin
Super Lloyd4-Aug-09 1:40
Super Lloyd4-Aug-09 1:40 
AnswerRe: How i can add new buttons to my epander control Pin
wasimsharp4-Aug-09 1:56
wasimsharp4-Aug-09 1:56 
QuestionCustom classes in XAML - Assign properties after parents set Pin
Ian Shlasko3-Aug-09 4:15
Ian Shlasko3-Aug-09 4:15 
AnswerRe: Custom classes in XAML - Assign properties after parents set Pin
Super Lloyd4-Aug-09 3:14
Super Lloyd4-Aug-09 3:14 
GeneralRe: Custom classes in XAML - Assign properties after parents set Pin
Ian Shlasko4-Aug-09 12:14
Ian Shlasko4-Aug-09 12:14 

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

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