mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
调整服务器逻辑
1、调整Entity.AddComponent方法添加的组件Id为父组件的Id。 2、增加了ISupportedSingleCollection和ISingleCollectionRoot接口. 3、增加了SingleCollection、用于把子组件保存到单独的数据库表的功能,配合ISupportedSingleCollection和ISingleCollectionRoot。
This commit is contained in:
@@ -6,11 +6,13 @@ namespace TEngine.Core.DataBase;
|
||||
|
||||
public interface IDateBase
|
||||
{
|
||||
public static readonly CoroutineLockQueueType DataBaseLock = new CoroutineLockQueueType("DataBaseLock");
|
||||
IDateBase Initialize(string connectionString, string dbName);
|
||||
FTask<long> Count<T>(string collection = null) where T : Entity;
|
||||
FTask<long> Count<T>(Expression<Func<T, bool>> filter, string collection = null) where T : Entity;
|
||||
FTask<bool> Exist<T>(string collection = null) where T : Entity;
|
||||
FTask<bool> Exist<T>(Expression<Func<T, bool>> filter, string collection = null) where T : Entity;
|
||||
FTask<T> QueryNotLock<T>(long id, string collection = null) where T : Entity;
|
||||
FTask<T> Query<T>(long id, string collection = null) where T : Entity;
|
||||
FTask<(int count, List<T> dates)> QueryCountAndDatesByPage<T>(Expression<Func<T, bool>> filter, int pageIndex, int pageSize, string collection = null) where T : Entity;
|
||||
FTask<(int count, List<T> dates)> QueryCountAndDatesByPage<T>(Expression<Func<T, bool>> filter, int pageIndex, int pageSize, string[] cols, string collection = null) where T : Entity;
|
||||
|
Reference in New Issue
Block a user