Fantasy
搜索结果

    显示/隐藏目录

    SingleCollectionComponent 类

    用于处理Entity下的实体进行数据库分表存储的组件

    继承
    object
    Entity
    SingleCollectionComponent
    实现
    IEntity
    IPool
    IAssembly
    IDisposable
    继承成员
    Entity.Id
    Entity.RunTimeId
    Entity.IsDisposed
    Entity.Scene
    Entity.Parent
    Entity.Type
    Entity.GetParent<T>()
    Entity.Create<T>(Scene, bool, bool)
    Entity.Create<T>(Scene, long, bool, bool)
    Entity.AddComponent<T>(bool)
    Entity.AddComponent<T>(long, bool)
    Entity.AddComponent(Entity)
    Entity.AddComponent<T>(T)
    Entity.GetComponent<T>()
    Entity.GetComponent(Type)
    Entity.GetComponent<T>(long)
    Entity.GetOrAddComponent<T>(bool)
    Entity.RemoveComponent<T>(bool)
    Entity.RemoveComponent<T>(long, bool)
    Entity.RemoveComponent(Entity, bool)
    Entity.RemoveComponent<T>(T, bool)
    Entity.Deserialize(Scene, bool)
    Entity.ForEachSingleCollection
    Entity.ForEachTransfer
    Entity.ForEachMultiEntity
    Entity.ForEachEntity
    Entity.Dispose()
    Entity.IsPool()
    Entity.SetIsPool(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.SingleCollection
    程序集: Fantasy.Net.dll
    语法
    public sealed class SingleCollectionComponent : Entity, IEntity, IPool, IAssembly, IDisposable

    方法

    | 编辑本文 查看源代码

    GetCollections<T>(T)

    通过数据库获取某一个实体类型下所有的分表数据到当前实体下,并且会自动建立父子关系。

    声明
    public FTask GetCollections<T>(T entity) where T : Entity, ISingleCollectionRoot
    参数
    类型 名称 描述
    T entity

    实体实例

    返回
    类型 描述
    FTask
    类型参数
    名称 描述
    T

    实体泛型类型

    | 编辑本文 查看源代码

    Load(long)

    程序集加载时调用

    声明
    public FTask Load(long assemblyIdentity)
    参数
    类型 名称 描述
    long assemblyIdentity

    程序集标识

    返回
    类型 描述
    FTask
    | 编辑本文 查看源代码

    OnUnLoad(long)

    卸载的时候调用

    声明
    public FTask OnUnLoad(long assemblyIdentity)
    参数
    类型 名称 描述
    long assemblyIdentity

    程序集标识

    返回
    类型 描述
    FTask
    | 编辑本文 查看源代码

    ReLoad(long)

    程序集重新加载的时候调用

    声明
    public FTask ReLoad(long assemblyIdentity)
    参数
    类型 名称 描述
    long assemblyIdentity

    程序集标识

    返回
    类型 描述
    FTask
    | 编辑本文 查看源代码

    SaveCollections<T>(T)

    存储当前实体下支持分表的组件到数据中,包括存储实体本身。

    声明
    public FTask SaveCollections<T>(T entity) where T : Entity, ISingleCollectionRoot
    参数
    类型 名称 描述
    T entity

    实体实例

    返回
    类型 描述
    FTask
    类型参数
    名称 描述
    T

    实体泛型类型

    实现

    IEntity
    IPool
    IAssembly
    IDisposable

    扩展方法

    JsonHelper.ToJson<T>(T)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX