mirror of https://github.com/ogoun/Zero.git
You can not 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
403 B
23 lines
403 B
using System.Collections.Generic;
|
|
|
|
namespace ZeroLevel.Patterns.Queries
|
|
{
|
|
public interface IStorage<T>
|
|
{
|
|
IEnumerable<T> Get();
|
|
|
|
IEnumerable<T> Get(IQuery query);
|
|
|
|
QueryResult Count();
|
|
|
|
QueryResult Count(IQuery query);
|
|
|
|
QueryResult Post(T obj);
|
|
|
|
QueryResult Remove(T obj);
|
|
|
|
QueryResult Remove(IQuery query);
|
|
|
|
void Drop();
|
|
}
|
|
} |