Beispiel #1
0
 public Post(int postId, Categorieën categorie, string naam, string beschrijvingTaal, int moeilijkheidsgraadOnderwerp, int postVersie, string taalVersie, DateTime laatstGeüpdatet, int reportsPostbeschrijving)
 {
     PostId                      = postId;
     Categorie                   = categorie;
     Naam                        = naam;
     BeschrijvingTaal            = beschrijvingTaal;
     MoeilijkheidsgraadOnderwerp = moeilijkheidsgraadOnderwerp;
     PostVersie                  = postVersie;
     TaalVersie                  = taalVersie;
     LaatstGeüpdatet             = laatstGeüpdatet;
     ReportsPostbeschrijving     = reportsPostbeschrijving;
 }
Beispiel #2
0
        public void RecordCategoryVisit(Categorieën categorie, Gebruiker huidigeGebruiker)
        {
            using (SqlConnection connectie = Database.Connectie)
            {
                using (SqlCommand cmd = new SqlCommand("RecordCategoryVisitProcedure", connectie))
                {
                    cmd.CommandType = CommandType.StoredProcedure;

                    cmd.Parameters.Add(new SqlParameter("@Categorie", categorie + 1));
                    cmd.Parameters.Add(new SqlParameter("@GebruikerId", huidigeGebruiker.GebruikerId));

                    try
                    {
                        int rowsAffected = cmd.ExecuteNonQuery();
                    }
                    catch (SqlException exp)
                    {
                        throw exp;
                    }
                }
            }
        }
 public void RecordCategoryVisit(Categorieën categorie, Gebruiker huidigeGebruiker)
 {
     throw new System.NotImplementedException();
 }
 public Categorie(Categorieën categorieWaarde, string naam, string omschrijving)
 {
     CategorieWaarde = categorieWaarde;
     Naam            = naam;
     Omschrijving    = omschrijving;
 }
 public void RecordCategoryVisit(Categorieën categorie, Gebruiker gebruiker)
 {
     context.RecordCategoryVisit(categorie, gebruiker);
 }