Table of Contents

Class MasterDataCommonsOptions

Namespace
JJMasterData.Commons.Configuration.Options
Assembly
JJMasterData.Commons.dll

JJMasterData key/value configurations. They're populated from JJMasterData section on IConfiguration, following its implementations. On .NET Framework, add an IConfiguration builder to your application.

public sealed class MasterDataCommonsOptions
Inheritance
MasterDataCommonsOptions
Inherited Members

Properties

AdditionalConnectionStrings

A collection of additional connection string definitions used for database connections. Each connection string includes provider-specific information and is identified by a unique GUID. This property can be used to define and manage multiple database connections within a single application. Default value: an empty list.

public List<ConnectionString> AdditionalConnectionStrings { get; set; }

Property Value

List<ConnectionString>

ConnectionProvider

public DataAccessProvider ConnectionProvider { get; set; }

Property Value

DataAccessProvider

ConnectionString

public required string ConnectionString { get; set; }

Property Value

string

IsNetFramework

[JsonIgnore]
public static bool IsNetFramework { get; }

Property Value

bool

ReadProcedurePattern

Pattern used to generate the names of stored procedures for reading data. The placeholder {tablename} will be replaced with the name of the table being accessed. Default value: {tablename}Get

[Display(Name = "Read Procedure Pattern")]
public string ReadProcedurePattern { get; set; }

Property Value

string

SecretKey

Secret key used at JJMasterDataEncryptionService

[Display(Name = "Cryptography Secret Key")]
public string? SecretKey { get; set; }

Property Value

string

WriteProcedurePattern

Pattern used to generate the names of stored procedures for writing data. The placeholder {tablename} will be replaced with the name of the table being accessed. Default value: {tablename}Set

[Display(Name = "Write Procedure Pattern")]
public string WriteProcedurePattern { get; set; }

Property Value

string

Methods

GetReadProcedureName(Element)

public string GetReadProcedureName(Element element)

Parameters

element Element

Returns

string

GetReadProcedureName(string)

public string GetReadProcedureName(string tableName)

Parameters

tableName string

Returns

string

GetWriteProcedureName(Element)

public string GetWriteProcedureName(Element element)

Parameters

element Element

Returns

string

GetWriteProcedureName(string)

public string GetWriteProcedureName(string tableName)

Parameters

tableName string

Returns

string

RemoveTbPrefix(string)

public static string RemoveTbPrefix(string tableName)

Parameters

tableName string

Returns

string