Search Results for

    Show / Hide Table of Contents

    Class ExpressMetaData

    A collection of IPersistEntity instances, optimised for EXPRESS models

    Inheritance
    System.Object
    ExpressMetaData
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Xbim.Common.Metadata
    Assembly: Xbim.Common.dll
    Syntax
    public class ExpressMetaData

    Fields

    | Improve this Doc View Source

    Module

    Module for which this meta data structure is created

    Declaration
    public readonly Module Module
    Field Value
    Type Description
    System.Reflection.Module

    Methods

    | Improve this Doc View Source

    ExpressType(Int16)

    returns the ExpressType corresponding to the TypeId

    Declaration
    public ExpressType ExpressType(short typeId)
    Parameters
    Type Name Description
    System.Int16 typeId
    Returns
    Type Description
    ExpressType
    | Improve this Doc View Source

    ExpressType(String)

    Returns the ExpressType with the specified name (name of type or express name)

    Declaration
    public ExpressType ExpressType(string typeName)
    Parameters
    Type Name Description
    System.String typeName

    The name of the type in uppercase (either type name or persistance name. These are not necesarilly the same)

    Returns
    Type Description
    ExpressType

    The foud type (or Null if not found)

    | Improve this Doc View Source

    ExpressType(Type)

    Returns the ExpressType with the specified type

    Declaration
    public ExpressType ExpressType(Type type)
    Parameters
    Type Name Description
    System.Type type

    The type

    Returns
    Type Description
    ExpressType

    The foud type (or Null if not found)

    | Improve this Doc View Source

    ExpressType(IPersist)

    Returns the ExpressType of the specified entity

    Declaration
    public ExpressType ExpressType(IPersist entity)
    Parameters
    Type Name Description
    IPersist entity
    Returns
    Type Description
    ExpressType
    | Improve this Doc View Source

    ExpressTypeId(String)

    Returns the typeId for the named type

    Declaration
    public short ExpressTypeId(string typeName)
    Parameters
    Type Name Description
    System.String typeName

    the name of the type, this is in uppercase

    Returns
    Type Description
    System.Int16
    | Improve this Doc View Source

    ExpressTypeId(Type)

    returns the express type id of the type, if the type is not an entity and excpetion will be thrown

    Declaration
    public short ExpressTypeId(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Int16
    | Improve this Doc View Source

    ExpressTypeId(IPersist)

    Declaration
    public short ExpressTypeId(IPersist entity)
    Parameters
    Type Name Description
    IPersist entity
    Returns
    Type Description
    System.Int16
    | Improve this Doc View Source

    ExpressTypesImplementing(Type)

    Declaration
    public IEnumerable<ExpressType> ExpressTypesImplementing(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ExpressType>
    | Improve this Doc View Source

    GetMetadata(Module)

    This method creates metadata model for a specified module based on reflection and custom attributes. It only creates ExpressMetaData once for any module. If it already exists it is retrieved from a static cache. However, for a performance reasons try to minimize this and rather keep a single instance reference for your code.

    Declaration
    public static ExpressMetaData GetMetadata(Module module)
    Parameters
    Type Name Description
    System.Reflection.Module module

    Assembly module which contains single schema model

    Returns
    Type Description
    ExpressMetaData

    Meta data structure for the schema defined within the module

    | Improve this Doc View Source

    GetType(Int16)

    Returns the Type of the Entity with typeId

    Declaration
    public Type GetType(short typeId)
    Parameters
    Type Name Description
    System.Int16 typeId
    Returns
    Type Description
    System.Type
    | Improve this Doc View Source

    IsIndexedEntityAttribute(String, Int32)

    Returns true if the named entities attribute is indexed

    Declaration
    public bool IsIndexedEntityAttribute(string entityTypeName, int attributeIndex)
    Parameters
    Type Name Description
    System.String entityTypeName

    the name of the Entity

    System.Int32 attributeIndex

    the index offset of the attribute to check, nb this is a 1 based index

    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    NonAbstractSubTypes(Type)

    Declaration
    public IEnumerable<short> NonAbstractSubTypes(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.Int16>
    | Improve this Doc View Source

    TryGetExpressType(String, out ExpressType)

    Trys to get the specified Type with the typeName, if the ExpressType does not exist false is returned

    Declaration
    public bool TryGetExpressType(string typeName, out ExpressType expressType)
    Parameters
    Type Name Description
    System.String typeName
    ExpressType expressType
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Types()

    Declaration
    public IEnumerable<ExpressType> Types()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ExpressType>
    | Improve this Doc View Source

    TypesImplementing(String)

    Declaration
    public IEnumerable<ExpressType> TypesImplementing(string stringType)
    Parameters
    Type Name Description
    System.String stringType
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ExpressType>
    | Improve this Doc View Source

    TypesImplementing(Type)

    Declaration
    public IEnumerable<ExpressType> TypesImplementing(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ExpressType>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 xbim