Example #1
0
        public static void Busca_Registro_Genérico(long Código, string Tabela)
        {
            string TextoSQL;

            TextoSQL = "EXECUTE Principal_RT_Genérico " +
                       Código +
                       ",'" + Tabela + "'";
            AFDAL.ExecuteQuery(TextoSQL);
        }
Example #2
0
        public static void Seleciona_Registros_Genérico(string Parâmetros, string Tabela)
        {
            string TextoSQL;

            TextoSQL = "EXECUTE Principal_LL_Genérico " +
                       "'" + Parâmetros + "'" +
                       ",'" + Tabela + "'";

            AFDAL.ExecuteQuery(TextoSQL);
        }
Example #3
0
        public static string Acha_Campo_Identity(string Tabela)
        {
            // Pesquisa no banco de dados, se há algum campo Identity desta tabela
            AFDAL.ExecuteQuery("EXECUTE Function_RT_Indentity '" + Tabela + "'");

            if (AFDAL.DtSementinha.Rows.Count > 0)
            {
                return(AFDAL.DtSementinha.Rows[0][0].ToString());
            }
            else
            {
                return("");
            }
        }