The top-level object in the framework. Sets up a context within which the
framework operates.

C# | Visual Basic |
public static class LightSpeedContext
Public NotInheritable Class LightSpeedContext

All Members | Properties | ||||
Icon | Member | Description |
---|---|---|
![]() ![]() | Cache |
If configured returns a reference to the second-level CacheBroker.
|
![]() ![]() | ConnectionString |
Gets or sets the database connection string.
|
![]() ![]() | DataProvider |
Gets the IDataProviderAdapter instance.
|
![]() ![]() | DataProviderObjectFactory |
Gets the underlying IDataProviderObjectFactory which exposes
factory methods for creating concrete ADO.NET provider objects such
as IDbConnection and IDbCommand.
|
![]() ![]() | 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.
|
![]() ![]() | 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.
|
![]() ![]() | 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.
|
![]() ![]() | Logger |
Gets of sets the ILogger implementation used by LightSpeed.
|
![]() ![]() | NamingStrategy |
Returns the INamingStrategy instance.
|
![]() ![]() | PluralizeTableNames |
Gets or sets a value indicating whether table names are inferred as plural.
|
![]() ![]() | QuoteIdentifiers |
Gets or sets a value indicating whether identifiers are quoted in generated SQL.
|
![]() ![]() | UnitOfWorkFactory |
Returns the IUnitOfWorkFactory instance.
|
![]() ![]() | UpdateBatchSize |
Gets or sets the maximum number of update statements per command batch.
Defaults to 10.
|

Object | |
![]() | LightSpeedContext |