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 it's implementations. On .NET Framework, add a IConfiguration builder to your application.

builder.Services.AddOptions<JJMasterDataOptions>();

public sealed class MasterDataCommonsOptions
Inheritance
MasterDataCommonsOptions
Inherited Members

Properties

AdditionalConnectionStrings

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

Property Value

List<ConnectionString>

ConnectionProvider

public DataAccessProvider ConnectionProvider { get; set; }

Property Value

DataAccessProvider

ConnectionString

public string? ConnectionString { get; set; }

Property Value

string

IsNetFramework

[JsonIgnore]
public static bool IsNetFramework { get; }

Property Value

bool

LocalizationTableName

Default value: tb_masterdata_resources

[Display(Name = "Localization Table Name")]
public string LocalizationTableName { get; set; }

Property Value

string

ReadProcedurePattern

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

Default value: {tablename}Set

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

Property Value

string

Methods

GetConnectionString(Guid?)

public ConnectionString GetConnectionString(Guid? guid)

Parameters

guid Guid?

Returns

ConnectionString

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