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
ConnectionProvider
public DataAccessProvider ConnectionProvider { get; set; }
Property Value
ConnectionString
public required string ConnectionString { get; set; }
Property Value
IsNetFramework
[JsonIgnore]
public static bool IsNetFramework { get; }
Property Value
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
SecretKey
Secret key used at JJMasterDataEncryptionService
[Display(Name = "Cryptography Secret Key")]
public string? SecretKey { get; set; }
Property Value
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
Methods
GetReadProcedureName(Element)
public string GetReadProcedureName(Element element)
Parameters
element
Element
Returns
GetReadProcedureName(string)
public string GetReadProcedureName(string tableName)
Parameters
tableName
string
Returns
GetWriteProcedureName(Element)
public string GetWriteProcedureName(Element element)
Parameters
element
Element
Returns
GetWriteProcedureName(string)
public string GetWriteProcedureName(string tableName)
Parameters
tableName
string
Returns
RemoveTbPrefix(string)
public static string RemoveTbPrefix(string tableName)
Parameters
tableName
string