public LogsInternalDatabase(ISqLiteConnectionFactory connectionFactory) : base(connectionFactory.GetLogsConnection()) { // Create tables if they don't exist. Connection.CreateTable <LogEntry>(); Connection.CreateIndex <LogEntry>(x => x.SentToServerAtUtc); }
public SqLiteRepository(ISqLiteConnectionFactory connectionFactory) { connection = connectionFactory.GetConnection(); dbLock = new object(); CreateTables(); }
public ServiceClientInternalDatabase(ISqLiteConnectionFactory connectionFactory) : base(connectionFactory.GetAppDBConnection()) { // Create tables here, using following Way, Connection.CreateTable <TestEntity>(); }