Example #1
0
        public StorageMem(IConfiguration configuration)
        {
            //Get references to repos and reuse them for this object's lifetime
            DataLayerInfrastructure <ContactsContext> infrastructure = new Infrastructure();

            infrastructure.EnsureStorageCreated(configuration);
            _contactRepository = new ContactRepository(infrastructure);
            _skillRepository   = new SkillRepository(infrastructure);
        }