Configuration Reference
The following configuration settings are available through the LightSpeedContext class and the configuration file.
Property | Description | More Information |
AuditInfoMode | How to generate user names for CreatedBy, UpdatedBy, etc. | Implementing Storage Policies in LightSpeed |
AutoTimestampMode (autoTimestamps) | How to generate timestamps for CreatedOn, UpdatedOn, etc. | Implementing Storage Policies in LightSpeed |
Cache | Cache implementation for cached entities | Performance and Tuning |
CascadeDeletes | Whether delete operations cascade by default | Basic Operations |
CommandTimeout | How long LightSpeed should allow commands to run before failing them. (Config entry is in seconds.) | |
ConnectionString | The database connection string. (Config entry refers to the <connectionStrings> section.) | Basic Operations |
CustomAuditInfoStrategy | IAuditInfoStrategy for user names for CreatedBy, UpdatedBy, etc. | Implementing Storage Policies in LightSpeed |
CustomAutoTimestampStrategy | IAutoTimestampStrategy for timestamps for CreatedOn, UpdatedOn, etc. | Implementing Storage Policies in LightSpeed |
DataProvider | The type of database. | Basic Operations |
DetectPropertyNames | Enables the Entity.Set overload which does not take a property name. True by default. | |
DisplayNamingStrategy | IDisplayNamingStrategy for localising property names for display in validation messages. | Building Applications with LightSpeed |
EntityFactory | IEntityFactory to be used when materialising entities. | |
IdentityBlockSize | When using the KeyTable identity method, the number of Ids to reserve per database query. When using the Sequence or MultiSequence method, the increment amount of the sequence. | Controlling the Database Mapping |
IdentityMethod | How LightSpeed assigns Ids to entities. | Controlling the Database Mapping |
IdentityMethodOptions | Additional configuration for the IdentityMethod | Controlling the Database Mapping |
Logger | ILogger for SQL and debug logging | Testing and Debugging |
NamingStrategy | INamingStrategy for database mapping. | Controlling the Database Mapping |
PluralizeTableNames | Whether table names in the database use the plural or singular form of the entity class name (e.g. Person table or People table). | Controlling the Database Mapping |
QuoteIdentifiers | Whether to quote identifiers (e.g. table names) in generated SQL. Avoids conflicts with SQL reserved words, but can cause case sensitivity issues on some databases. | Basic Operations |
Schema | The default database schema (can be overridden on a per‑entity basis). | |
SearchEngine | The type of full‑text search engine, if any. | Advanced Querying Techniques |
SearchEngineFileLocation | Location of full text search index file(s). | Advanced Querying Techniques |
UpdateBatchSize | Maximum number of update statements per command batch. | Performance and Tuning |
UseMediumTrustCompatibility | Runs LightSpeed in a mode that is compatible with ASP.NET medium trust, at the expense of some performance. | Building Web Applications with LightSpeed |
VerboseLogging | Shows additional detail in log displays. | Testing and Debugging |