Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Pin
OriginalGriff17-Feb-16 23:59
mveOriginalGriff17-Feb-16 23:59 
SuggestionRe: C# Pin
Richard Deeming18-Feb-16 2:45
mveRichard Deeming18-Feb-16 2:45 
AnswerRe: C# PinPopular
BillWoodruff18-Feb-16 8:54
professionalBillWoodruff18-Feb-16 8:54 
GeneralRe: C# Pin
Mycroft Holmes18-Feb-16 13:18
professionalMycroft Holmes18-Feb-16 13:18 
GeneralRe: C# Pin
BillWoodruff18-Feb-16 16:13
professionalBillWoodruff18-Feb-16 16:13 
GeneralRe: C# Pin
CHill6018-Feb-16 13:30
mveCHill6018-Feb-16 13:30 
QuestionEF dynamic CRUD Pin
jackie.398117-Feb-16 3:38
jackie.398117-Feb-16 3:38 
AnswerRe: EF dynamic CRUD Pin
Dave Kreskowiak17-Feb-16 4:33
mveDave Kreskowiak17-Feb-16 4:33 
You could just dynamically build the SQL query strings, although this is a method that is usually frowned upon.

Linq/EF doesn't have any built-in way of building the query dynamically as far as picking which table you're going to query. You can build everything else in the query dynamically though. To keep things simple, I'd separate these operations into different methods instead of trying to cram everything into a single method that builds any kind of query. One method per query type will make your life much easier.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: EF dynamic CRUD Pin
jackie.398117-Feb-16 4:49
jackie.398117-Feb-16 4:49 
GeneralRe: EF dynamic CRUD Pin
Dave Kreskowiak17-Feb-16 5:07
mveDave Kreskowiak17-Feb-16 5:07 
GeneralRe: EF dynamic CRUD Pin
jackie.398117-Feb-16 5:22
jackie.398117-Feb-16 5:22 
GeneralRe: EF dynamic CRUD Pin
Dave Kreskowiak17-Feb-16 7:03
mveDave Kreskowiak17-Feb-16 7:03 
GeneralRe: EF dynamic CRUD Pin
jackie.398117-Feb-16 9:03
jackie.398117-Feb-16 9:03 
AnswerRe: EF dynamic CRUD Pin
Sascha Lefèvre17-Feb-16 5:36
professionalSascha Lefèvre17-Feb-16 5:36 
GeneralRe: EF dynamic CRUD Pin
jackie.398117-Feb-16 6:51
jackie.398117-Feb-16 6:51 
AnswerRe: EF dynamic CRUD Pin
Gerry Schmitz17-Feb-16 17:51
mveGerry Schmitz17-Feb-16 17:51 
QuestionBoss just gave me ReSharper Ultimate Pin
Ian Klek16-Feb-16 22:28
Ian Klek16-Feb-16 22:28 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
OriginalGriff16-Feb-16 23:17
mveOriginalGriff16-Feb-16 23:17 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
Pete O'Hanlon16-Feb-16 23:31
mvePete O'Hanlon16-Feb-16 23:31 
GeneralRe: Boss just gave me ReSharper Ultimate Pin
John Torjo18-Feb-16 6:40
professionalJohn Torjo18-Feb-16 6:40 
JokeRe: Boss just gave me ReSharper Ultimate Pin
Sascha Lefèvre16-Feb-16 23:31
professionalSascha Lefèvre16-Feb-16 23:31 
GeneralRe: Boss just gave me ReSharper Ultimate Pin
Foothill18-Feb-16 5:33
professionalFoothill18-Feb-16 5:33 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
Kornfeld Eliyahu Peter17-Feb-16 1:01
professionalKornfeld Eliyahu Peter17-Feb-16 1:01 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
BillWoodruff17-Feb-16 3:10
professionalBillWoodruff17-Feb-16 3:10 
AnswerRe: Boss just gave me ReSharper Ultimate Pin
Ravi Bhavnani17-Feb-16 11:11
professionalRavi Bhavnani17-Feb-16 11:11 

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.