Skip to content

SetDefaultName Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

DbSessionFactoryOptionsBuilder SetDefaultName(string name) ​

csharp
DbSessionFactoryOptionsBuilder SetDefaultName(string name)

Sets the default registration name to be used when no explicit name is provided.

Parameters ​

NameDescription
nameThe name of the registration to designate as the default.

Returns ​

The current DbSessionFactoryOptionsBuilder instance so that additional registrations or configuration may be chained.

Remarks ​

Validation of the provided name is deferred until Build() is called. If name is or whitespace, the default will be resolved during Build() using the standard fallback rules.