Class DbConPropExtensions
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
ListList<DbConProp>PropTypeDbConPropType
Returns
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
ListList<DbConProp>PropTypeDbConPropType
Returns
GetValue(List<DbConProp>, DbConPropType)
Returns the value of the specified property.
public static string GetValue(this List<DbConProp> List, DbConPropType PropType)
Parameters
ListList<DbConProp>PropTypeDbConPropType
Returns
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
ListList<DbConProp>PropTypeDbConPropType
Returns
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
ListList<DbConProp>PropTypeDbConPropTypeValuestring