Click here to Skip to main content
15,745,764 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compress pdf/csv files to zip files Pin
BillWoodruff3-Aug-16 19:47
professionalBillWoodruff3-Aug-16 19:47 
GeneralRe: Compress pdf/csv files to zip files Pin
Richard Deeming4-Aug-16 2:00
mveRichard Deeming4-Aug-16 2:00 
QuestionUsing SerializationEngine to input .obj file Pin
andycruce2-Aug-16 14:12
andycruce2-Aug-16 14:12 
AnswerRe: Using SerializationEngine to input .obj file Pin
Richard MacCutchan2-Aug-16 20:30
mveRichard MacCutchan2-Aug-16 20:30 
AnswerRe: Using SerializationEngine to input .obj file Pin
Pete O'Hanlon2-Aug-16 20:57
subeditorPete O'Hanlon2-Aug-16 20:57 
Questionhow to use cast linq concept Pin
Member 100705702-Aug-16 2:27
Member 100705702-Aug-16 2:27 
AnswerRe: how to use cast linq concept Pin
OriginalGriff2-Aug-16 2:42
mvaOriginalGriff2-Aug-16 2:42 
QuestionEager loading question Pin
Member 93644551-Aug-16 21:53
Member 93644551-Aug-16 21:53 
I have a question about eager loading of navigation properties using EF6. Note I like to use the extension syntax.

Suppose I have three tables A, B and C. There is a one-to-many relationship between A and B, and also a relationship between B and C. So, for a given A, I can obtain the collection of Bs using two methods:

Method 1 : using a primary key query...
C#
var Bs = context.B.Where(b => b.AId == A.Id).ToList();

Method 2 : using the navigation property...
C#
var Bs = a.Bs.ToList();

Now, suppose I want to load C for each B at the same time. Using Method 1 it is...
C#
var Bs = context.B.Include(b => b.C).Where(b => b.AId == A.Id).ToList();

My question is, is there an equivalent simple way to load C for each B when using Method 2?
AnswerRe: Eager loading question Pin
Nathan Minier2-Aug-16 2:58
professionalNathan Minier2-Aug-16 2:58 
AnswerRe: Eager loading question Pin
Agent__0073-Aug-16 18:52
professionalAgent__0073-Aug-16 18:52 
Question.. Pin
Daniyaltjm1-Aug-16 20:49
Daniyaltjm1-Aug-16 20:49 
AnswerRe: check the password wi-fi in c# Pin
Richard MacCutchan1-Aug-16 22:11
mveRichard MacCutchan1-Aug-16 22:11 
General... Pin
Daniyaltjm1-Aug-16 22:14
Daniyaltjm1-Aug-16 22:14 
GeneralRe: check the password wi-fi in c# Pin
OriginalGriff1-Aug-16 22:41
mvaOriginalGriff1-Aug-16 22:41 
GeneralMessage Closed Pin
1-Aug-16 22:46
Daniyaltjm1-Aug-16 22:46 
GeneralRe: check the password wi-fi in c# Pin
OriginalGriff1-Aug-16 22:50
mvaOriginalGriff1-Aug-16 22:50 
GeneralMessage Closed Pin
1-Aug-16 23:05
Daniyaltjm1-Aug-16 23:05 
GeneralRe: check the password wi-fi in c# Pin
Pete O'Hanlon2-Aug-16 0:34
subeditorPete O'Hanlon2-Aug-16 0:34 
GeneralRe: check the password wi-fi in c# Pin
Richard MacCutchan1-Aug-16 23:03
mveRichard MacCutchan1-Aug-16 23:03 
GeneralMessage Closed Pin
1-Aug-16 23:11
Daniyaltjm1-Aug-16 23:11 
GeneralRe: check the password wi-fi in c# Pin
Richard MacCutchan1-Aug-16 23:19
mveRichard MacCutchan1-Aug-16 23:19 
GeneralRe: check the password wi-fi in c# Pin
Daniyaltjm1-Aug-16 23:38
Daniyaltjm1-Aug-16 23:38 
GeneralRe: check the password wi-fi in c# Pin
Richard MacCutchan2-Aug-16 0:36
mveRichard MacCutchan2-Aug-16 0:36 
GeneralRe: check the password wi-fi in c# Pin
Daniyaltjm2-Aug-16 1:04
Daniyaltjm2-Aug-16 1:04 
JokeRe: check the password wi-fi in c# Pin
Richard MacCutchan2-Aug-16 1:09
mveRichard MacCutchan2-Aug-16 1:09 

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.