Table of Contents

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 bool

Whether 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

TrinityConfigurations.Authenticate

ConnectionFactory

A factory to create a new connection, to perform queries when needed.

[JsonIgnore]
public Func<DbConnection> ConnectionFactory { get; set; }

Property Value

Func<DbConnection>

Define your Brand dark logo.

public string? DarkLogo { get; set; }

Property Value

string

ExtraJavaScriptSources

Register Extra Javascript sources to be included in the admin panel.

public List<string> ExtraJavaScriptSources { get; }

Property Value

List<string>

ExtraStyleSources

Register Extra CSS style sources to be included in the admin panel.

public List<string> ExtraStyleSources { get; }

Property Value

List<string>

FallbackLocale

The fallback locale.

public string FallbackLocale { get; set; }

Property Value

string

FavIcon

Define your Brand FavIcon.

public string? FavIcon { get; set; }

Property Value

string

Define your Brand Footer.

public HtmlString? Footer { get; set; }

Property Value

HtmlString

IsDevelopment

Whether the build is in development or production.

[JsonIgnore]
public bool IsDevelopment { get; init; }

Property Value

bool

MaxPaginationPerPageCount

Define what is the Max pagination is allowed per resource.

public int MaxPaginationPerPageCount { get; set; }

Property Value

int

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

string

ProgressSettings

The front-end request loading indicator.

public ProgressConfigurations ProgressSettings { get; set; }

Property Value

ProgressConfigurations

RowsPerPageOptions

Define a list of pagination options.

public List<int> RowsPerPageOptions { get; set; }

Property Value

List<int>

Title

The website title.

public string Title { get; set; }

Property Value

string

Define your Brand white logo.

public string? WhiteLogo { get; set; }

Property Value

string