3 ms·
How would you test data access in a meaningful way without a DBMS? The beauty of Linq and Expression Trees. In the real world: Linq (c# code) -> compiler ->
by scarface74 9y ago
How would you test data access in a meaningful way without a DBMS?
The beauty of Linq and Expression Trees.
In the real world:
Linq (c# code) -> compiler -> expression tree -> run time Linq provider -> destination language (sql, Mongo Query etc.)
When you are unit testing you switch out the Linq provider for in memory Linq to objects provider.
https://msdn.microsoft.com/en-us/library/dn314429(v=vs.113).aspx https://msdn.microsoft.com/en-us/library/dn314429(v=vs.113)....