示例#1
0
        public LogsInternalDatabase(ISqLiteConnectionFactory connectionFactory) : base(connectionFactory.GetLogsConnection())
        {
            // Create tables if they don't exist.
            Connection.CreateTable <LogEntry>();

            Connection.CreateIndex <LogEntry>(x => x.SentToServerAtUtc);
        }
示例#2
0
 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>();
 }