Use InMemoryStore if the sample is being run on Mono

Detecting if the application is running on mono and using InMemoryStore instead of SqlServer.