Table of Contents

Class DbConPropExtensions

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

Provides extension methods for lists of connection string properties.

public static class DbConPropExtensions
Inheritance
DbConPropExtensions
Inherited Members

Methods

Find(List<DbConProp>, DbConPropType)

Finds and returns a property by type.

public static DbConProp Find(this List<DbConProp> List, DbConPropType PropType)

Parameters

List List<DbConProp>
PropType DbConPropType

Returns

DbConProp

Get(List<DbConProp>, DbConPropType)

Returns a property by type or raises an exception when not found.

public static DbConProp Get(this List<DbConProp> List, DbConPropType PropType)

Parameters

List List<DbConProp>
PropType DbConPropType

Returns

DbConProp

GetValue(List<DbConProp>, DbConPropType)

Returns the value of the specified property.

public static string GetValue(this List<DbConProp> List, DbConPropType PropType)

Parameters

List List<DbConProp>
PropType DbConPropType

Returns

string

HasProp(List<DbConProp>, DbConPropType)

Returns true if the specified property exists and has a non-empty value.

public static bool HasProp(this List<DbConProp> List, DbConPropType PropType)

Parameters

List List<DbConProp>
PropType DbConPropType

Returns

bool

SetValue(List<DbConProp>, DbConPropType, string)

Sets the value of the specified property.

public static void SetValue(this List<DbConProp> List, DbConPropType PropType, string Value)

Parameters

List List<DbConProp>
PropType DbConPropType
Value string