Guest User

Untitled

a guest
Feb 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Mvc;
  6. using Microsoft.AspNetCore.Mvc.Rendering;
  7. using Microsoft.EntityFrameworkCore;
  8. using MyProject.Data;
  9. using MyProject.Models;
  10. using Microsoft.AspNetCore.Authorization;
  11.  
  12. var m = _context.MyType.Include()
  13.  
  14. m.Include()
  15.  
  16. using (var context = new BloggingContext())
  17. {
  18. var blogs = context.Blogs
  19. .Include(blog => blog.Posts)
  20. .Include(blog => blog.Owner)
  21. .ToList();
  22. }
  23.  
  24. public partial class MyType
  25. {
  26. public string lastName{get;set;}
  27. public List<OtherRelatedType>{get;set}
  28. }
Add Comment
Please, Sign In to add comment