StorageServer/IO/IDatabase.cs
2024-03-24 10:29:56 +09:00

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();
}