質問

I have the following C# code:

   questions = _questionsRepository
        .GetAll()
        .Where(q => q.Problem.SubTopic.TopicId == topicId || topicId == 0)
        .Where(q => q.QuestionStatusId == questionStatusId || questionStatusId == 0)
        .Where(q => q.AssignedTo == assignedTo || assignedTo == "0")
        .Where(q => q.ModifiedBy == modifiedBy || modifiedBy == "0")
        .Include(q => q.Problem)
        .Include(q => q.Answers)
        .ToList();

I just downloaded LINQPad 4. I'd like to run this but I am not sure where to start. How can I add in the classes from my Entity Framework. Can someone give me some pointers.

役に立ちましたか?

解決

Do:

Add connection ==> Use a typed data context from your own assembly ==> Entity Framework

Click Next and locate the dll with the assembly.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top