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
121 {121 {
122 if ((object)defaultValueAttribute == null)122 if ((object)defaultValueAttribute == null)
123 {123 {
124 DefaultValueExpressionParser parser = new DefaultValueExpressionParser(defaultValueExpressionAttribute.Expression); 124 ValueExpressionParser parser = new ValueExpressionParser(defaultValueExpressionAttribute.Expression);
125 125
126 if ((object)typeRegistry != null)126 if ((object)typeRegistry != null)
127 parser.TypeRegistry = typeRegistry;127 parser.TypeRegistry = typeRegistry;
@@ -597,7 +597,7 @@ namespace GSF.Configuration · 469 unmodified lines
597 /// <remarks>597 /// <remarks>
598 /// Accessing this property will create a unique type registry for the current attribute type598 /// Accessing this property will create a unique type registry for the current attribute type
599 /// <typeparamref name="TParameterAttribute"/> which will initially contain the values found in599 /// <typeparamref name="TParameterAttribute"/> which will initially contain the values found in
600 /// the <see cref="DefaultValueExpressionParser.DefaultTypeRegistry"/> and can be augmented with600 /// the <see cref="ValueExpressionParser.DefaultTypeRegistry"/> and can be augmented with
601 /// custom types. Set to <c>null</c> to restore use of the default type registry.601 /// custom types. Set to <c>null</c> to restore use of the default type registry.
602 /// </remarks>602 /// </remarks>
603 [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]603 [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
@@ -609,7 +609,7 @@ namespace GSF.Configuration · 5 unmodified lines
609 {609 {
610 s_typeRegistry = new TypeRegistry();610 s_typeRegistry = new TypeRegistry();
611 611
612 foreach (KeyValuePair<string, object> item in DefaultValueExpressionParser.DefaultTypeRegistry)612 foreach (KeyValuePair<string, object> item in ValueExpressionParser.DefaultTypeRegistry)
613 s_typeRegistry.Add(item.Key, item.Value);613 s_typeRegistry.Add(item.Key, item.Value);
614 }614 }
615 615

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