November Happy Hour will be moved to Thursday December 5th.

Class ContentModelILCompiler

Inheritance
System.Object
ContentModelILCompiler
Namespace: EPiServer.DataAbstraction.RuntimeModel.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class ContentModelILCompiler : Object

Constructors

ContentModelILCompiler(IBackingTypeResolver, Func<IEnumerable<ContentScannerExtension>>)

Declaration
public ContentModelILCompiler(IBackingTypeResolver backingTypeResolver, Func<IEnumerable<ContentScannerExtension>> contentScannerExtensionsAccessor)
Parameters
Type Name Description
IBackingTypeResolver backingTypeResolver
System.Func<System.Collections.Generic.IEnumerable<ContentScannerExtension>> contentScannerExtensionsAccessor

Methods

GetOrGenerate(Type)

Generates a dynamic proxy of the given content type. The proxy becomes a subclass of the content type, that overrides any interceptable property.

Declaration
public Type GetOrGenerate(Type contentType)
Parameters
Type Name Description
System.Type contentType

The content type to create a proxy from.

Returns
Type Description
System.Type

Extension Methods