Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using Microsoft.AspNetCore.Mvc;
- using Microsoft.AspNetCore.Mvc.Rendering;
- using Microsoft.EntityFrameworkCore;
- using MyProject.Data;
- using MyProject.Models;
- using Microsoft.AspNetCore.Authorization;
- var m = _context.MyType.Include()
- m.Include()
- using (var context = new BloggingContext())
- {
- var blogs = context.Blogs
- .Include(blog => blog.Posts)
- .Include(blog => blog.Owner)
- .ToList();
- }
- public partial class MyType
- {
- public string lastName{get;set;}
- public List<OtherRelatedType>{get;set}
- }
Add Comment
Please, Sign In to add comment