ln.http.resources/collections/IEntityCollectionInterface.cs

21 lines
554 B
C#
Raw Normal View History

2019-06-06 08:39:39 +02:00
using System;
using System.Collections.Generic;
using System.Collections;
namespace ln.http.resources.collections
{
2019-06-11 11:26:13 +02:00
public interface IEntityCollectionInterface<TENTITY,TIDENT>
2019-06-06 08:39:39 +02:00
{
2019-06-11 11:26:13 +02:00
IEnumerable<TENTITY> List();
2019-06-06 08:39:39 +02:00
// ToDo: IEnumerable<TVALUE> Query(/* Filter expressions ?! */);
2019-06-11 11:26:13 +02:00
TENTITY CreateEntity();
TIDENT GetIdentity(TENTITY entity);
2019-06-06 08:39:39 +02:00
2019-06-11 11:26:13 +02:00
bool StoreEntity(TENTITY entity);
TENTITY GetEntity(TIDENT identity);
2019-06-06 08:39:39 +02:00
bool RemoveEntity(TIDENT identity);
string GetLastErrorMessage();
}
}