Ejemplo n.º 1
0
        public void SetUp()
        {
            var session = TryConnectToCassandra(timeout: TimeSpan.FromMinutes(1), interval: TimeSpan.FromSeconds(1));

            session.CreateKeyspaceIfNotExists(CqlDbConnectorFactory.Keyspace);
            table = new Table <TestDbSearcherObject>(session);
            table.CreateIfNotExists();
            connector = new CqlDbConnectorFactory().CreateConnector <TestDbSearcherObject>();
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     connector = new CqlDbConnectorFactory(typeof(TConnector).GetGenericTypeDefinition()).CreateConnector <TestDbSearcherObject>();
 }
Ejemplo n.º 3
0
 public CqlSchemaConfiguration()
 {
     ConnectorsFactory          = new CqlDbConnectorFactory(typeof(CqlDbConnector <>));
     PropertyDescriptionBuilder = new CqlPropertyDescriptionBuilder();
 }
 public BusinessArrayObjectsSchemaConfiguration()
 {
     ConnectorsFactory          = new CqlDbConnectorFactory(typeof(CqlDbConnector <>));
     PropertyDescriptionBuilder = new CqlPropertyDescriptionBuilder();
 }