Guest User

Untitled

a guest
Feb 17th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. namespace WebApp.Mocks
  2. {
  3. public class MockWebAppContext : IWebAppContext
  4. {
  5. public MockWebAppContext()
  6. {
  7. Table1 = new MockModel1Set();
  8. Table2 = new MockModel2Set();
  9. }
  10.  
  11. public IDbSet<WebApp.Models.Model1> Table1 { get; set; }
  12. public IDbSet<WebApp.Models.Model2> Table2 { get; set; }
  13.  
  14. public int SaveChanges()
  15. {
  16. return 0;
  17. }
  18.  
  19. public DbEntityEntry Entry(object entity)
  20. {
  21. return (DbEntityEntry)entity;
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment