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()
Assembly: Xbim.Common.dll
public class ExpressMetaData
Fields
|
Improve this Doc
View Source
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
returns the ExpressType corresponding to the TypeId
Declaration
public ExpressType ExpressType(short typeId)
Parameters
Type |
Name |
Description |
System.Int16 |
typeId |
|
Returns
|
Improve this Doc
View Source
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
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
Returns the ExpressType of the specified entity
Declaration
public ExpressType ExpressType(IPersist entity)
Parameters
Returns
|
Improve this Doc
View Source
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
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
Declaration
public short ExpressTypeId(IPersist entity)
Parameters
Returns
Type |
Description |
System.Int16 |
|
|
Improve this Doc
View Source
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
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
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
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
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
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
Declaration
public IEnumerable<ExpressType> Types()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ExpressType> |
|
|
Improve this Doc
View Source
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
Declaration
public IEnumerable<ExpressType> TypesImplementing(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ExpressType> |
|