mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-21 08:20:14 +08:00
This commit is contained in:
@@ -240,7 +240,8 @@ namespace Dapper.Contrib.Extensions
|
||||
sb.AppendFormat("update {0} set ", name);
|
||||
|
||||
var allProperties = TypePropertiesCache(type);
|
||||
var nonIdProps = allProperties.Where(a => !keyProperties.Contains(a));
|
||||
var computedProperties = ComputedPropertiesCache(type);
|
||||
var nonIdProps = allProperties.Except(keyProperties.Union(computedProperties));
|
||||
|
||||
for (var i = 0; i < nonIdProps.Count(); i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user