Added Model, Publisher, inheritance and moved connection to Model class
This commit is contained in:
parent
2bdb786e8b
commit
198167c70e
@ -5,11 +5,10 @@ using Microsoft.Data.SqlClient;
|
|||||||
|
|
||||||
namespace OOP_Opdracht_CSharp_Alfa_2022.classes
|
namespace OOP_Opdracht_CSharp_Alfa_2022.classes
|
||||||
{
|
{
|
||||||
class Game
|
class Game : Model
|
||||||
{
|
{
|
||||||
// Define class members
|
// Define class members
|
||||||
|
|
||||||
private SqlConnection connection;
|
|
||||||
private Dictionary<int, string> table_data;
|
private Dictionary<int, string> table_data;
|
||||||
private KeyValuePair<int, string> record;
|
private KeyValuePair<int, string> record;
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,10 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace OOP_Opdracht_CSharp_Alfa_2022.classes
|
||||||
|
{
|
||||||
|
class Publisher : Model
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user