Class TrinityConfigurations
- Namespace
- AbanoubNassem.Trinity.Configurations
- Assembly
- AbanoubNassem.Trinity.dll
Provides programmatic configuration for the Trinity framework.
public class TrinityConfigurations
- Inheritance
-
TrinityConfigurations
- Inherited Members
Constructors
TrinityConfigurations(bool)
Creates a new instance of TrinityConfigurations.
public TrinityConfigurations(bool isDevelopment)
Parameters
isDevelopment
boolWhether the build is in development or production.
Properties
AuthenticateUser
A TrinityConfigurations.Authenticate to provide a way for Trinity to Authenticate a user.
[JsonIgnore]
public TrinityConfigurations.Authenticate? AuthenticateUser { get; set; }
Property Value
ConnectionFactory
A factory to create a new connection, to perform queries when needed.
[JsonIgnore]
public Func<DbConnection> ConnectionFactory { get; set; }
Property Value
DarkLogo
Define your Brand dark logo.
public string? DarkLogo { get; set; }
Property Value
ExtraJavaScriptSources
Register Extra Javascript sources to be included in the admin panel.
public List<string> ExtraJavaScriptSources { get; }
Property Value
ExtraStyleSources
Register Extra CSS style sources to be included in the admin panel.
public List<string> ExtraStyleSources { get; }
Property Value
FallbackLocale
The fallback locale.
public string FallbackLocale { get; set; }
Property Value
FavIcon
Define your Brand FavIcon.
public string? FavIcon { get; set; }
Property Value
Footer
Define your Brand Footer.
public HtmlString? Footer { get; set; }
Property Value
IsDevelopment
Whether the build is in development or production.
[JsonIgnore]
public bool IsDevelopment { get; init; }
Property Value
MaxPaginationPerPageCount
Define what is the Max pagination is allowed per resource.
public int MaxPaginationPerPageCount { get; set; }
Property Value
MiniProfilerConfigures
An Action<T> to configure the provided StackExchange.Profiling.MiniProfilerOptions.
[JsonIgnore]
public Action<MiniProfilerOptions>? MiniProfilerConfigures { get; set; }
Property Value
- Action<MiniProfilerOptions>
Prefix
The prefix is used to prefix all the Trinity routes.
public string Prefix { get; set; }
Property Value
ProgressSettings
The front-end request loading indicator.
public ProgressConfigurations ProgressSettings { get; set; }
Property Value
RowsPerPageOptions
Define a list of pagination options.
public List<int> RowsPerPageOptions { get; set; }
Property Value
Title
The website title.
public string Title { get; set; }
Property Value
WhiteLogo
Define your Brand white logo.
public string? WhiteLogo { get; set; }