History

GSF.Core: Added UpdateValueExpression to allow for expression based updates.

J. Ritchie Carroll committed 9 years ago

Commit b3d39ba1 parent ed18be510 files · +334 −148Browse files

Showing the changes to Source/Libraries/GSF.Core/Configuration/ConnectionStringParser.cs (1 of 10 files). Show all

Unified · Split

Source/Libraries/GSF.Core/Configuration/ConnectionStringParser.cs+3−3
@@ -121,7 +121,7 @@ namespace GSF.Configuration · 120 unmodified lines
121121 {
122122 if ((object)defaultValueAttribute == null)
123123 {
124− DefaultValueExpressionParser parser = new DefaultValueExpressionParser(defaultValueExpressionAttribute.Expression);
124+ ValueExpressionParser parser = new ValueExpressionParser(defaultValueExpressionAttribute.Expression);
125125
126126 if ((object)typeRegistry != null)
127127 parser.TypeRegistry = typeRegistry;
@@ -597,7 +597,7 @@ namespace GSF.Configuration · 469 unmodified lines
597597 /// <remarks>
598598 /// Accessing this property will create a unique type registry for the current attribute type
599599 /// <typeparamref name="TParameterAttribute"/> which will initially contain the values found in
600− /// the <see cref="DefaultValueExpressionParser.DefaultTypeRegistry"/> and can be augmented with
600+ /// the <see cref="ValueExpressionParser.DefaultTypeRegistry"/> and can be augmented with
601601 /// custom types. Set to <c>null</c> to restore use of the default type registry.
602602 /// </remarks>
603603 [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
@@ -609,7 +609,7 @@ namespace GSF.Configuration · 5 unmodified lines
609609 {
610610 s_typeRegistry = new TypeRegistry();
611611
612− foreach (KeyValuePair<string, object> item in DefaultValueExpressionParser.DefaultTypeRegistry)
612+ foreach (KeyValuePair<string, object> item in ValueExpressionParser.DefaultTypeRegistry)
613613 s_typeRegistry.Add(item.Key, item.Value);
614614 }
615615

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t