21 lines
554 B
C#
21 lines
554 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections;
|
|
namespace ln.http.resources.collections
|
|
{
|
|
public interface IEntityCollectionInterface<TENTITY,TIDENT>
|
|
{
|
|
IEnumerable<TENTITY> List();
|
|
// ToDo: IEnumerable<TVALUE> Query(/* Filter expressions ?! */);
|
|
|
|
TENTITY CreateEntity();
|
|
TIDENT GetIdentity(TENTITY entity);
|
|
|
|
bool StoreEntity(TENTITY entity);
|
|
TENTITY GetEntity(TIDENT identity);
|
|
bool RemoveEntity(TIDENT identity);
|
|
|
|
string GetLastErrorMessage();
|
|
}
|
|
}
|