Code

History

Commits on master to Source/Libraries/GSF.Core/Data/Model70+
  1. GSF.Core: Added method to TableOperations to convert a collection of records to a DataTable.StephenCWills committed 9 years ago1a2c055
  2. GSF.Core: Improved code comments related to field data type attribute application.J. Ritchie Carroll committed 9 years agoca64546
  3. GSF.Core: Optimized internal GetInterpretedPropertyValueJ. Ritchie Carroll committed 9 years ago3af31a8
  4. GSF.Core: Updated code comments for record restriction parameters and GetInterpretedFieldValue to better clarify use case for when function will need to be called.J. Ritchie Carroll committed 9 years agof6aca67
  5. GSF.Core: Added FieldDataTypeAttribute to GSF.Data.Model to allow for specific DbType to be applied to parameter fields for database operations (e.g., DateTime2 for SQL Server) - attribute allows for specific database targets in model, e.g., [FieldDataType(DbType.DateTime2, DatabaseType.SQLServer)]J. Ritchie Carroll committed 9 years agoca0e4af
  6. GSF.Core: Cleared code analysis messages.J. Ritchie Carroll committed 9 years ago2e52236
  7. GSF.Core: Added static delegates for helpful modeled record functions that can be used when no data connection is available: LoadRecordFunction, NewRecordFunction, ApplyRecordDefaultsFunction and ApplyRecordUpdatesFunction.J. Ritchie Carroll committed 9 years agoa4fb9f4
  8. GSF.Core: Updated AdoDataConnection to not modify parameter array contents that get passed into function that accept parameterized queries.J. Ritchie Carroll committed 9 years agocbc8ac2
  9. GSF.Core: Updated per table operation instance root query restriction to be a clone of static instance to better support non-conflicting updates to parameter array, if needed.J. Ritchie Carroll committed 9 years ago4204259
  10. GSF.Core: Updated TableOperations root query restriction operations to clone the cached record restriction before use since the AdoDataConnection functions that accept parameters auto-convert the parameters into IDbDataParameter instances tied to a specific IDbCommand making any record restriction non-reusable.J. Ritchie Carroll committed 9 years agoc0c4c0d
  11. GSF.Core: Added RootQueryRestrictionAttribute to allow global query filters that should apply to all query operations.J. Ritchie Carroll committed 9 years ago8e9550b
  12. GSF.Core: (1) Added a delegate generator for "ApplyDefaults" to ValueExpressionParser that can be used to apply defaults to an existing modeled object, (2) Added "ApplyRecordDefaults" to TableOperations such that default values and expressions can be applied to an existing modeled record.J. Ritchie Carroll committed 9 years ago5ab8463
  13. GSF.Core: Added documentation to TableOperations UpdateRecord functions about automatic application of defined UpdateValueExpressionAttribute instances defined on modeled properties.J. Ritchie Carroll committed 9 years ago7678f1f
  14. GSF.Core: Added generic overloads to CategorizedSettingsBase class that will allow for application settings that are synchronized with a categorized section in a configuration file and will perform bi-directional synchronization of elements to an external source, e.g., user interface elements.J. Ritchie Carroll committed 9 years ago501293c
  15. GSF.Core: Added TypeConvertedValueExpressionAttribute and updated value expression parser to accommodate bi-directional expressions,i.e., where modeled property values can be assigned back to expressions allowing synchronization of a model with an external source, e.g., a user interface element.J. Ritchie Carroll committed 9 years agoec89a33
  16. GSF.Core: Added static InitializeType method to ValueExpressionParser so that any static functionality of modeled types can be initialized prior to calling create or update delegate generation functions. This allows modeled types to self-register any custom symbols and types that may be used during evaluation of value expressions attributes.J. Ritchie Carroll committed 9 years ago183b1f1
  17. Merge branch 'master' of https://github.com/GridProtectionAlliance/gsf.gitJ. Ritchie Carroll committed 9 years ago00728a2
  18. GSF.Core: Updated table operations to accept an enumerable of key/value pairs as custom tokens.J. Ritchie Carroll committed 9 years ago94daae1
  19. GSF.Core: Fixed custom type registry exception.StephenCWills committed 9 years ago13094c0
  20. GSF.Net.Ftp: Updated StreamReader in FtpControlChannel to keep stream open since it will be closed by FtpDataStream. GSF.Security: Updated UserAccount model to pick up default NodeID value from AdoSecurityProvider.J. Ritchie Carroll committed 9 years ago84aed76
  21. GSF.Web: Updated primary key cache in data context hub client to use a concurrent dictionary to support possible simultaneous updates.J. Ritchie Carroll committed 9 years ago3943ceb
  22. GSF.Core: Fixed issues with session based primary key caching for DataContext uses of TableOperations.J. Ritchie Carroll committed 9 years ago3e6419a
  23. GSF.Core: Optimized TableOperations non-paging QueryRecords functions to directly load all data fields instead of loading each record by primary keys.J. Ritchie Carroll committed 9 years ago2e8157f
  24. GSF.Web: Updated DataContext table operations to be cached per session hub-client.J. Ritchie Carroll committed 9 years agoc890f79
  25. GSF.Core: Added UpdateValueExpression to allow for expression based updates.J. Ritchie Carroll committed 9 years agob3d39ba
  26. GSF.Core: Added requirement to set evaluation order when using "this" keywords in DefaultValueExpressionAttribute.J. Ritchie Carroll committed 9 years ago6918d4a
  27. GSF.Core: (1) Updated default value expression parser to better detect cache misses instead of depending on null value, (2) updated record restriction to support implicit conversion from string so that expressions like `"Enabled <> 0" + tableOperations.GetSearchRestriction(filterText)` can be supported, (3) added URL and Acronym validation attributes that extend RegularExpressionAttribute and define standard regular expressions in one location with default error messages. GSF.Web: (1) Updated field template functions supported by DataContext to properly enable the 'has-error' and 'has-feedback' bootstrap field highlighting when a validation error exists as well as to better distinguish between missing values and validation errors, (2) updated DataContext.AddInputField to automatically detect modeled AcronymValidationAttribute instances and apply knockout based input restrictions on typed field, e.g., forcing typed text to be upper case, (3) added new knockout binding handlers to the embedded resource gsf.web.knockout.js to force typed text to upper case, lower case or handle acronym type fields.J. Ritchie Carroll committed 9 years ago4b8c80c
  28. GSF: Cleaned up build warnings.J. Ritchie Carroll committed 9 years ago38ff313
  29. GSF.Core: (1) Moved table of cached default value expression values to per type T instance to reduce contention, (2) added more simple CreateInstance function that does not require scoping parameter.J. Ritchie Carroll committed 9 years ago3dea4bc
  30. GSF.Core: (1) Added "EvaluationOrderAttribute" so that custom ordering can happen when evaluating default value expressions, (2) added "Cached" property to DefaultValueExpressionAttribute so that costly expressions that do not change can be cached to prevent further evaluations, e.g.: [DefaultValueExpression("NotNull(Connection.ExecuteScalar('SELECT ID FROM SignalType WHERE Acronym=\\'CALC\\''), 10)", Cached = true)]J. Ritchie Carroll committed 9 years agof852134
  31. GSF.Core: (1) Added DefaultValueExpressionParser and DefaultValueExpressionScopeBase so that default value expressions can be used easily in other places, (2) updated DefaultValueExpressionAttribute implementations that are used with TableOperation models to support use of "this" keyword for self-referencing field access (3) moved attributes into GSF.ComponentModel and GSF.ComponentModel.DataAnnotations - this will be a breaking change for some model implementations, (4) updated ConnectionStringParser to recognize DefaultValueExpressionAttributesJ. Ritchie Carroll committed 9 years ago24f271e
  32. GSF.Core: (1) Updated commented for recent check-ins. (2) Fixed sealed state for InitialValueAttribute.J. Ritchie Carroll committed 9 years ago2818714
  33. GSF.Core: Moved DefaultVAlueExpressionAttribute into root namespace.J. Ritchie Carroll committed 9 years agoad51b84
  34. GSF.Core: Added 'DefaultValueExpressionAttribute` for handling modeled default values based on expressions when using NewRecord function of TableOperations, e.g., [DefaultValueExpression("Guid.NewGuid()")], [DefaultValueExpression("DateTime.UtcNow")], [DefaultValueExpression("UserInfo.CurrentUserID")] and even [DefaultValueExpression("NotNull(Connection.ExecuteScalar('SELECT ID FROM SignalType WHERE Acronym=\\'CALC\\''), 10)")]J. Ritchie Carroll committed 9 years ago3b6a825
  35. GSF.Core: Added "NewRecord" function to TableOperations that will create a new modeled record instance, automatically applying any modeled default values as specified by a DefaultValueAttribute on the model properties.J. Ritchie Carroll committed 9 years ago26383ff

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