public SQLiteDataStore()
        {
            _platform = DependencyService.Get <ISQLitePlatform>();
            var con = _platform.GetConnection();

            con.CreateTable <Item>();
            con.Close();
        }
        public SQLiteDataStore(ISQLitePlatform platform)
        {
            _platform = platform;
            var con = _platform.GetConnection();

            con.CreateTable <Item>();
            con.Close();
        }
Example #3
0
        public Repository(ISQLitePlatform platform)
        {
            _platform = platform;
            var con = _platform.GetConnection();

            con.CreateTable <T>();
            con.Close();
        }
Example #4
0
        public Repository()
        {
            _platform = DependencyService.Get <ISQLitePlatform>();
            var con = _platform.GetConnection();

            con.CreateTable <T>();
            con.Close();
        }
Example #5
0
        public Conexao()
        {
            _platform = DependencyService.Get <ISQLitePlatform>();

            _conexao = _platform.GetConnection();
            _conexao.CreateTable <Usuario>();
            _conexao.CreateTable <CardapioReturn>();
            _conexao.CreateTable <BarracaReturn>();
            _conexao.CreateTable <Rank>();
        }
Example #6
0
 public DataHelper()
 {
     platform = DependencyService.Get <ISQLitePlatform>();
     dbAsync  = platform.GetAsyncConnection();
     db       = platform.GetConnection();
 }
Example #7
0
 public SQLiteClient(ISQLitePlatform sqlite)
 {
     _connection = sqlite.GetConnection();
     CreateDatabaseAsync();
 }