Gets or sets an IEntityFactory to be used when materialising entities from the database. By default, LightSpeed calls the default constructor when materialising entities: use EntityFactory only if you need to use a nondefault constructor or factory method (for example using a dependency injection container).

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public IEntityFactory EntityFactory { get; set; }
Visual Basic (Declaration)
Public Property EntityFactory As IEntityFactory

See Also