Added Model, Publisher, inheritance and moved connection to Model class

This commit is contained in:
Andreas 2022-12-08 13:40:43 +01:00
parent 2bdb786e8b
commit 198167c70e
3 changed files with 24 additions and 2 deletions

View File

@ -5,11 +5,10 @@ using Microsoft.Data.SqlClient;
namespace OOP_Opdracht_CSharp_Alfa_2022.classes
{
class Game
class Game : Model
{
// Define class members
private SqlConnection connection;
private Dictionary<int, string> table_data;
private KeyValuePair<int, string> record;

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Data.SqlClient;
namespace OOP_Opdracht_CSharp_Alfa_2022.classes
{
abstract class Model
{
private SqlConnection connection;
}
}

View File

@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace OOP_Opdracht_CSharp_Alfa_2022.classes
{
class Publisher : Model
{
}
}