Skip to content

Conversation

@rwood
Copy link

@rwood rwood commented May 24, 2019

CacheDictionaryProperties wasn't being used.... should it?

There was an error if the Key attribute and Column attribute were both on a property. Since Key inherits from Column var colAttr = property.GetCustomAttribute(typeof(ColumnAttribute)) as ColumnAttribute; threw an exception.

Another error, when the Key attribute was present the column and value were added to the Where clause, but then also added to the Set clause. This throws an exception from the db (at least on SQL Server). Adding a continue; to skip the Set clause for the Key.

Wood, Roger C added 2 commits May 24, 2019 08:34
…, then key, then prop name. Needed Package Ref to Microsoft Test SDK for the tests to run (in JetBrains Rider at least).
@ahmad-moussawi ahmad-moussawi force-pushed the master branch 6 times, most recently from f9a6417 to a30bb49 Compare January 1, 2020 11:39
@ahmad-moussawi ahmad-moussawi force-pushed the master branch 7 times, most recently from 838f8ca to 47633a3 Compare March 14, 2021 14:51
@ahmad-moussawi ahmad-moussawi force-pushed the master branch 2 times, most recently from 748c2bf to bad6733 Compare June 12, 2021 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant