mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2024-10-19 08:50:36 +02:00
0806b25c79
- EditRecordDialog has been added and edited; Others pages (View) has been added and completed; - All ViewModel and Models was completed; - WebService, ApiComandProvider has full funcionality, - New interface has been created; - Application is working now :) it's time to refractoring and testing
36 lines
992 B
C#
36 lines
992 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using HospitalServerManager.InterfacesAndEnums;
|
|
using HospitalServerManager.Model.Controllers;
|
|
|
|
namespace HospitalServerManager.Model.Basic
|
|
{
|
|
internal abstract class SqlTable : ISqlTableModel
|
|
{
|
|
// TODO: Dodac table do klas modelu
|
|
public string PrimaryKey { get; protected set; }
|
|
public string PrimaryKeyName { get; set; }
|
|
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;
|
|
}
|
|
}
|
|
}
|