I use EntityFramework 22.214.171.124, TS_ChatEntities is derived from DbContext and have a ctor:
public TS_ChatEntities(DbConnection connection)
: base(connection, true)
All 3 DB tables are cached with CSV tool in a folder "d:\Temp\11". Then I try:
var wrappedDataLoader = new CsvDataLoader("d:\\Temp\\11");
var dataLoader = new CachingDataLoader(wrappedDataLoader, false);
using (var connection = Effort.DbConnectionFactory.CreateTransient(dataLoader))
TS_ChatEntities ctxChat = new TS_ChatEntities(connection);
var ct = ctxChat.Room.Count();
Debug is OK, 'ct' = 0. Though I have 3 records in the corresponding CSV. Then I try to populate Room table with 1 record, DaveChanges and count Room-s again - success (1 record).
VS 2012 reports no error at run-time. How can I find out a reason why EF mock is empty?