Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Composite Query (Core 1.1)

$
0
0

Hi,

I just started with the Contoso University sample project and found it tremendously great. But as I started on the same track with my personal Database, I realized that having Composite Keys I couldn't return back records because of the two (or more) arguments. I can load the list and create a new record but can't return details, edit or delete pages.

Most probably because of the sections like:

var student = await _context.Students
.Include(s => s.Enrollments)
.ThenInclude(e => e.Course)
.AsNoTracking()
.SingleOrDefaultAsync(m => m.ID == id);

as against mine, where two or more are to be considered as ids.

Any idea how to overcome the problem?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>