Click here to Skip to main content
15,881,882 members
Home / Discussions / Database
   

Database

 
QuestionSQL Linq, Joins, returns 1st record over and over Pin
jkirkerx23-Jul-15 9:11
professionaljkirkerx23-Jul-15 9:11 
Answer[Solved] Pin
jkirkerx23-Jul-15 11:30
professionaljkirkerx23-Jul-15 11:30 
QuestionEntity Framework Book. Pin
Kevin Marois23-Jul-15 5:29
professionalKevin Marois23-Jul-15 5:29 
QuestionRe: Entity Framework Book. Pin
Richard MacCutchan23-Jul-15 6:36
mveRichard MacCutchan23-Jul-15 6:36 
AnswerRe: Entity Framework Book. Pin
Kevin Marois23-Jul-15 7:31
professionalKevin Marois23-Jul-15 7:31 
AnswerRe: Entity Framework Book. Pin
Mycroft Holmes23-Jul-15 14:10
professionalMycroft Holmes23-Jul-15 14:10 
QuestionSQL Linq, select from select and join Pin
jkirkerx21-Jul-15 13:27
professionaljkirkerx21-Jul-15 13:27 
SuggestionRe: SQL Linq, select from select and join Pin
Richard Deeming22-Jul-15 1:50
mveRichard Deeming22-Jul-15 1:50 
By creating two different DbContext classes, you're making things much harder for yourself. Entity Framework can only generate SQL queries for sets in a single context; as soon as you need to join to a set in a different context, you have to pull all of the data into memory first.

Based on your SQL query, both tables are in the same database, so it would make much more sense to have both sets in the same context. That way, you can join them together properly, and Entity Framework will generate more efficient queries.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: SQL Linq, select from select and join Pin
jkirkerx22-Jul-15 6:02
professionaljkirkerx22-Jul-15 6:02 
GeneralRe: SQL Linq, select from select and join Pin
Richard Deeming22-Jul-15 8:00
mveRichard Deeming22-Jul-15 8:00 
GeneralRe: SQL Linq, select from select and join Pin
jkirkerx22-Jul-15 9:04
professionaljkirkerx22-Jul-15 9:04 
QuestionTrouble working with dates again and union and sum Pin
jkirkerx20-Jul-15 13:08
professionaljkirkerx20-Jul-15 13:08 
AnswerRe: Trouble working with dates again and union and sum Pin
jkirkerx20-Jul-15 13:34
professionaljkirkerx20-Jul-15 13:34 
Generalmake nullable type Pin
jkirkerx20-Jul-15 13:59
professionaljkirkerx20-Jul-15 13:59 
General[Got It] Pin
jkirkerx21-Jul-15 9:58
professionaljkirkerx21-Jul-15 9:58 
GeneralThe above post is incorrect - SQL Linq, Date Range, Union in VB Pin
jkirkerx22-Jul-15 8:54
professionaljkirkerx22-Jul-15 8:54 
GeneralRe: The above post is incorrect - SQL Linq, Date Range, Union in VB Pin
Mycroft Holmes22-Jul-15 14:15
professionalMycroft Holmes22-Jul-15 14:15 
GeneralRe: The above post is incorrect - SQL Linq, Date Range, Union in VB Pin
jkirkerx23-Jul-15 6:38
professionaljkirkerx23-Jul-15 6:38 
GeneralRe: The above post is incorrect - SQL Linq, Date Range, Union in VB Pin
Brisingr Aerowing23-Jul-15 7:37
professionalBrisingr Aerowing23-Jul-15 7:37 
GeneralRe: The above post is incorrect - SQL Linq, Date Range, Union in VB Pin
jkirkerx23-Jul-15 8:21
professionaljkirkerx23-Jul-15 8:21 
QuestionDatabase management Pin
Otekpo Emmanuel19-Jul-15 9:22
Otekpo Emmanuel19-Jul-15 9:22 
GeneralRe: Database management Pin
PIEBALDconsult19-Jul-15 9:40
mvePIEBALDconsult19-Jul-15 9:40 
AnswerRe: Database management Pin
Richard MacCutchan19-Jul-15 22:00
mveRichard MacCutchan19-Jul-15 22:00 
AnswerRe: Database management Pin
Mycroft Holmes19-Jul-15 22:32
professionalMycroft Holmes19-Jul-15 22:32 
AnswerRe: Database management Pin
Wendelius20-Jul-15 6:50
mentorWendelius20-Jul-15 6:50 

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.