Table of Contents

Class DocumentClassFactory

Namespace
Tlabs.Data
Assembly
Tlabs.Data.dll

Factory that generates a dymanic class for a document schema

public class DocumentClassFactory : IDocumentClassFactory
Inheritance
DocumentClassFactory
Implements
Inherited Members
Extension Methods

Constructors

DocumentClassFactory()

public DocumentClassFactory()

Properties

baseType

Base class of generated dynamic class

protected virtual Type baseType { get; }

Property Value

Type

Methods

BuildDynamicAttributes(Field, Dictionary<string, string>)

protected virtual IList<DynamicAttribute> BuildDynamicAttributes(DocumentSchema.Field field, Dictionary<string, string> keyValuePairs)

Parameters

field DocumentSchema.Field
keyValuePairs Dictionary<string, string>

Returns

IList<DynamicAttribute>

CreateBodyType(DocumentSchema)

Create the body type class for documentSchema.

public Type CreateBodyType(DocumentSchema schema)

Parameters

schema DocumentSchema

Returns

Type

Remarks

Replaces any already cached type class.

GetBodyType(string)

Gets the body type for a document schema with sid using a cached version or compiling a new class.

public Type GetBodyType(string typeId)

Parameters

typeId string

Returns

Type