The LightSpeedContext<(Of <(TUnitOfWork>)>) type exposes the following members.

Constructors

  NameDescription
LightSpeedContext<(Of <(TUnitOfWork>)>)Overloaded.

Methods

  NameDescription
CreateUnitOfWork
Creates a new IUnitOfWork associated with this LightSpeedContext.

Properties

  NameDescription
AuditInfoMode
Gets or sets how LightSpeed generates audit information for automatic audit columns such as CreatedBy.
(Inherited from LightSpeedContext.)
AutoTimestampMode
Determines how LightSpeed generates times for automatic timestamps such as CreatedOn (track create time), UpdatedOn (track update time) and DeletedOn (soft delete).
(Inherited from LightSpeedContext.)
Cache
If configured returns a reference to the second-level CacheBroker.
(Inherited from LightSpeedContext.)
CascadeDeletes
Gets or sets a value indicating whether delete operations cascade by default.
(Inherited from LightSpeedContext.)
CommandTimeout
Gets or sets the timeout for database queries or commands. If null, the database provider default timeout is used.
(Inherited from LightSpeedContext.)
CompatibilityOptions
Gets or sets flags for controlling LightSpeed compatibility behavior.
(Inherited from LightSpeedContext.)
ConnectionString
Gets or sets the database connection string.
(Inherited from LightSpeedContext.)
CustomAuditInfoStrategy
Gets or sets the IAuditInfoStrategy implementation used for automatic audit information.
(Inherited from LightSpeedContext.)
CustomAutoTimestampStrategy
Gets or sets a custom IAutoTimestampStrategy. You do not need to set this property unless AutoTimestampMode is set to Custom, in which case it is mandatory.
(Inherited from LightSpeedContext.)
DataProvider
Gets the IDataProviderAdapter instance.
(Inherited from LightSpeedContext.)
DataProviderObjectFactory
Gets the underlying IDataProviderObjectFactory which exposes factory methods for creating concrete ADO.NET provider objects such as IDbConnection and IDbCommand.
(Inherited from LightSpeedContext.)
DetectPropertyNames
Gets or sets a value indicating whether LightSpeed automatically resolves property names. When using SetValue and GetValue in properties, LightSpeed automatically determines the name of the property being accessed. However, when using code generation it is more efficient to use Entity.Get and Entity.Set instead. In this case, set DetectPropertyNames to false.
(Inherited from LightSpeedContext.)
DisplayNamingStrategy
Gets or sets the IDisplayNamingStrategy instance.
(Inherited from LightSpeedContext.)
EntityFactory
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).
(Inherited from LightSpeedContext.)
HasLogger
Whether or not this LightSpeedContext has a ILogger defined.
(Inherited from LightSpeedContext.)
IdentityBlockSize
Gets or sets the number of identities allocated when using an IdentityMethod that allocates blocks of identity numbers. Currently KeyTable and Sequence. The default block size is 10.
(Inherited from LightSpeedContext.)
IdentityMethod
Determines the strategy used to generate new unique identifiers. - KeyTable efficiently produces database unique integer keys and is great for web applications. - Guids are globally unique and fast to generate but not as user-friendly as integers. - Sequence uses a database specific sequence object to generate database unique integers. Available on Oracle and Postgres only. - IdentityColumn uses an auto-incrementing identity column.
(Inherited from LightSpeedContext.)
IdentityMethodOptions
Gets or sets an IdentityMethodOptions to customise the behavior of the selected IdentityMethod.
(Inherited from LightSpeedContext.)
Logger
Gets or sets the ILogger implementation used by LightSpeed.
(Inherited from LightSpeedContext.)
NamingStrategy
Returns the INamingStrategy instance.
(Inherited from LightSpeedContext.)
PluralizeTableNames
Gets or sets a value indicating whether table names are inferred as plural.
(Inherited from LightSpeedContext.)
QuoteIdentifiers
Gets or sets a value indicating whether identifiers are quoted in generated SQL.
(Inherited from LightSpeedContext.)
Schema
Gets or sets the database schema.
(Inherited from LightSpeedContext.)
SearchEngine
If configured returns a reference to the full text search engine SearchEngineBroker.
(Inherited from LightSpeedContext.)
SearchEngineFileLocation
Gets or sets the location of the full text search index file(s).
(Inherited from LightSpeedContext.)
UnitOfWorkFactory
Returns the IUnitOfWorkFactory instance.
(Inherited from LightSpeedContext.)
UpdateBatchSize
Gets or sets the maximum number of update statements per command batch. Defaults to 10.
(Inherited from LightSpeedContext.)
VerboseLogging
Gets or sets whether to perform verbose logging.
(Inherited from LightSpeedContext.)

See Also