protected override void Because_of() { using (var context = new ClientContext()) { _course = context.TrainingCourses.ProjectTo <TrainingCourseDto>(Configuration).FirstOrDefault(n => n.CourseName == "Course 1"); } }
protected override void Because_of() { using (var context = new ClientContext()) { context.Database.Log = s => Trace.WriteLine(s); _course = ProjectTo <TrainingCourseDto>(context.TrainingCourses, null, c => c.Content.Select(co => co.Category)).FirstOrDefault(n => n.CourseName == "Course 1"); } }
protected override void Because_of() { using (var context = new ClientContext()) { context.Database.Log = s => Trace.WriteLine(s); _course = context.TrainingCourses.ProjectTo <TrainingCourseDto>(Configuration, null, "Content.Category").FirstOrDefault(n => n.CourseName == "Course 1"); } }