Class DocumentClassFactory
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
Methods
BuildDynamicAttributes(Field, Dictionary<string, string>)
protected virtual IList<DynamicAttribute> BuildDynamicAttributes(DocumentSchema.Field field, Dictionary<string, string> keyValuePairs)
Parameters
field
DocumentSchema.FieldkeyValuePairs
Dictionary<string, string>
Returns
CreateBodyType(DocumentSchema)
Create the body type class for documentSchema
.
public Type CreateBodyType(DocumentSchema schema)
Parameters
schema
DocumentSchema
Returns
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