Guest User

Untitled

a guest
Feb 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public class ToolsDbContext : DbContext
  2. {
  3. public DbSet<ToolsObject> ToolsObjects { get; set; }
  4. }
  5.  
  6. foreach (var myObj in _Database.ToolsObjects)
  7. {}
  8.  
  9. foreach (var myObj in _Database.ToolsObjects.OfType<ToolsObjectChild>())
  10. {}
Add Comment
Please, Sign In to add comment