19 lines
463 B
C#
19 lines
463 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ET.Server
|
|
{
|
|
public interface IDBComponent
|
|
{
|
|
ETTask Save<T>(long entityId, T entity) where T : class;
|
|
|
|
ETTask<T> QueryByEntityId<T>(long entityId) where T : class;
|
|
|
|
ETTask<List<T>> Query<T>(Func<T, bool> predicate = null) where T : class;
|
|
|
|
ETTask Update<T>(long entityId, T entity) where T : class;
|
|
|
|
ETTask Delete<T>(long entityId) where T : class;
|
|
}
|
|
}
|