Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

.net core not returning the sub list

make use to add the include 

        public async Task<ActionResult<IEnumerable<Playlist>>> GetPlayList()
        {
            return await _context.Playlist.Include(p => p.Videos).ToListAsync();

        }
 
PREVIOUS NEXT
Tagged: #core #returning #list
ADD COMMENT
Topic
Name
3+6 =