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#
using System;
|
|
using System.Collections.Generic;
|
|
namespace OSI.API.DAL.Base
|
|
{
|
|
|
|
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);
|
|
}
|
|
|
|
} |