GridProtectionAlliance / gsf

Grid Solutions Framework
https://gridprotectionalliance.org/NightlyBuilds/GridSolutionsFramework/Help/index.html
MIT License
161 stars 69 forks source link

Update to return loaded record even when primary keys are default values #297

Closed ritchiecarroll closed 5 days ago

ritchiecarroll commented 5 days ago

Note that function of AddNewOrUpdateRecord is still dependent on detection of default primary keys values.

If a model use intends to insert a record with default values for primary keys, user will need to manually differentiate between "add" and "update" operation in code and not use AddNewOrUpdateRecord function in this scenario.