Table of Contents

Class EntityInfoExtensions

Namespace
The.Entities
Assembly
Instagile.dll
public static class EntityInfoExtensions
Inheritance
EntityInfoExtensions
Inherited Members

Methods

CreateEntity(IEntityInfo, IEntityContext)

Creates a concrete, blank entity given a context from a framework instance.

public static IEntity CreateEntity(this IEntityInfo metadata, IEntityContext context)

Parameters

metadata IEntityInfo
context IEntityContext

Returns

IEntity

CreateEntity<T>(IEntityInfo, IEntityContext)

Creates a concrete, blank T given a context from a framework instance.

public static T CreateEntity<T>(this IEntityInfo metadata, IEntityContext context)

Parameters

metadata IEntityInfo
context IEntityContext

Returns

T

Type Parameters

T

HasAttribute(IEntityInfo, string)

[Obsolete("use Attributes.Values.Any() - IEntityInfo does not abstract over its properties")]
public static bool HasAttribute(this IEntityInfo metadata, string name)

Parameters

metadata IEntityInfo
name string

Returns

bool