12 lines
280 B
C#
12 lines
280 B
C#
namespace StorageServer.IO;
|
|
|
|
public interface IDatabase : IDisposable {
|
|
public IEnumerable<T> SelectAll<T>();
|
|
public T Select<T>(long id);
|
|
public long Insert<T>(T model);
|
|
public bool Update<T>(T model);
|
|
public bool Delete(long id);
|
|
|
|
public long Count();
|
|
}
|