Fantasy
搜索结果

    显示/隐藏目录

    SingleCollectionAttribute 类

    表示用于指定实体的单一集合存储属性。此属性用于配合 ISupportedSingleCollection 接口使用, 用于定义实体属于哪个父实体的子集合,以及在数据库中使用的集合名称。

    继承
    object
    Attribute
    SingleCollectionAttribute
    继承成员
    Attribute.Equals(object)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetHashCode()
    Attribute.IsDefaultAttribute()
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.Match(object)
    Attribute.TypeId
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.Entitas.Interface
    程序集: Fantasy.Net.dll
    语法
    [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)]
    public class SingleCollectionAttribute : Attribute

    构造函数

    | 编辑本文 查看源代码

    SingleCollectionAttribute(Type, string)

    初始化 SingleCollectionAttribute 类的新实例,指定父实体类型和集合名称。

    声明
    public SingleCollectionAttribute(Type rootType, string collectionName)
    参数
    类型 名称 描述
    Type rootType

    父实体的类型。

    string collectionName

    在数据库中使用的集合名称。

    字段

    | 编辑本文 查看源代码

    CollectionName

    获取在数据库中使用的集合名称。

    声明
    public readonly string CollectionName
    字段值
    类型 描述
    string
    | 编辑本文 查看源代码

    RootType

    获取父实体的类型,指示此实体是属于哪个父实体的子集合。

    声明
    public readonly Type RootType
    字段值
    类型 描述
    Type

    扩展方法

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