Exemplo n.º 1
0
        public DataTable LoadPlatt()
        {
            PlaGaDBfunk dbClass = new PlaGaDBfunk();

            using (var conn = dbClass.Platt())
            {
                DataTableFunk dataTablesFunktions = new DataTableFunk();
                SqlDataReader reader;
                reader = conn.ExecuteReader();

                DataTable dt = dataTablesFunktions.dt();


                dt.Load(reader);

                return(dt);
            }
        }
Exemplo n.º 2
0
        public DataTable LoadGenre(string Email)
        {
            PlaGaDBfunk dbClass = new PlaGaDBfunk();

            using (var conn = dbClass.Genre())
            {
                conn.Parameters.AddWithValue("@Email", Email);
                DataTableFunk dataTablesFunktions = new DataTableFunk();
                SqlDataReader reader;
                reader = conn.ExecuteReader();

                DataTable dt = dataTablesFunktions.dt();


                dt.Load(reader);

                return(dt);
            }
        }