public override IEntityContextConfiguration GetConfiguration()
 {
     var entityContextConfiguration = new EntityContextConfiguration();
     var connection = new EntityContextConnection(DataDirectory);
     entityContextConfiguration.Connection = connection;
     return entityContextConfiguration;
 }
 public static IConfigure UsingRavenEmbedded(this IConfigure configure, string dataDirectory)
 {
     var entityContextConfiguration = new EntityContextConfiguration();
     var connection = new EntityContextConnection(dataDirectory);
     entityContextConfiguration.Connection = connection;
     configure.Container.Bind<IEntityContextConfiguration>(entityContextConfiguration);
     configure.Container.Bind((EntityContextConnection)entityContextConfiguration.Connection);
     configure.Container.Bind(typeof(IEntityContext<>), typeof(EntityContext<>));
     configure.Commands.Storage = entityContextConfiguration;
     return configure;
 }