Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Complex queries with Entity Framework

$
0
0

I need to write a small blog (just a task at university). It involves a page that shows a single blog post and all comments for it. With PHP and SQL it would be a no-brainer, but I don't quite understand how would that work with Entity Framework. Should I make it so each blog post has a field that is a list of IDs of related comments, or should I make every ID have a field that points to a related blog post?


Viewing all articles
Browse latest Browse all 1698

Trending Articles



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