1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-11-09 04:55:27 +01:00
admissionManager/Model/Basic/SqlTable.cs

36 lines
992 B
C#
Raw Permalink Normal View History

2018-11-18 18:49:40 +01:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HospitalServerManager.InterfacesAndEnums;
using HospitalServerManager.Model.Controllers;
2018-11-18 18:49:40 +01:00
namespace HospitalServerManager.Model.Basic
{
internal abstract class SqlTable : ISqlTableModel
2018-11-18 18:49:40 +01:00
{
// TODO: Dodac table do klas modelu
public string PrimaryKey { get; protected set; }
public string PrimaryKeyName { get; set; }
2018-11-18 18:49:40 +01:00
protected List<string> ColumnNames { get; set; }
protected SqlTable()
{
PrimaryKey = "BRAK";
PrimaryKeyName = "BRAK";
ColumnNames = new List<string>();
}
public SqlTable(string primaryKey, string primaryKeyName, List<string> columnNames)
{
PrimaryKey = primaryKey;
PrimaryKeyName = primaryKeyName;
ColumnNames = columnNames;
}
public List<string> GetColumnNames()
{
return ColumnNames;
}
}
2018-11-18 18:49:40 +01:00
}