EntityFramework.Docs icon indicating copy to clipboard operation
EntityFramework.Docs copied to clipboard

Document how to use fields for navigation properties

Open ajcvickers opened this issue 7 years ago • 3 comments

See https://github.com/aspnet/EntityFrameworkCore/pull/10939 and https://github.com/aspnet/EntityFrameworkCore/issues/11992

ajcvickers avatar May 14 '18 17:05 ajcvickers

Does this ticket imply that only documentation part is remaining and the actual functionality is already in EFCore. If so, could you demonstrate some quick codes how to achieve this?

KshitizGIT avatar Sep 26 '19 15:09 KshitizGIT

@KshitizGIT Yes, if you want to use field-only navigations you can configure them like this:

b.HasMany(typeof(PostNavFields), "_posts").WithOne("_blog");

AndriySvyryd avatar Oct 03 '19 21:10 AndriySvyryd

See also #775

ajcvickers avatar Jan 15 '20 21:01 ajcvickers