You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
651 B
C#
23 lines
651 B
C#
3 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
2 years ago
|
namespace OSI.API.DAL.Base
|
||
3 years ago
|
{
|
||
|
|
||
|
public abstract class DAOBase<T> : MySQL
|
||
|
{
|
||
|
protected DAOBase(DBConnectionInformation connectionInformation) : base(connectionInformation)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
protected DAOBase(string server, string database, string username, string password) : base(server, database, username, password)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public abstract List<T> GetAll();
|
||
|
public abstract T Get(int id);
|
||
|
public abstract void Create(T itemToCreate);
|
||
|
public abstract void Update(T itemToUpdate);
|
||
|
public abstract void Delete(int id);
|
||
|
}
|
||
|
|
||
|
}
|