Exemple #1
0
 public GenericActDA(SQLiteAsyncConnection database)
 {
     this.database = database;
     syncDA        = new SyncronizerDA(database);
     cacheDA       = new CacheDA(database);
     idsLogged     = GetUsersIDsLogged();
 }
        /// <summary>
        /// Get informacoes de usuario.
        /// </summary>
        /// <returns>Row da tabela de usuarios</returns>
        public TB_USUARIO GetInfoUsuario()
        {
            var result = new SyncronizerDA(database).SelectInfoDeUsuarios();

            if (result == null || result.Count <= 0)
            {
                return(null);
            }
            return(result[0]);
        }