Skip to content

Commit

Permalink
Update Massive.cs
Browse files Browse the repository at this point in the history
Added "ToExpando()" to BuildCommands.
  • Loading branch information
robconery committed Sep 16, 2012
1 parent b181644 commit 32b0dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Massive.cs
Expand Up @@ -247,9 +247,9 @@ public class DynamicModel : DynamicObject {
var commands = new List<DbCommand>();
foreach (var item in things) {
if (HasPrimaryKey(item)) {
commands.Add(CreateUpdateCommand(item, GetPrimaryKey(item)));
commands.Add(CreateUpdateCommand(item.ToExpando(), GetPrimaryKey(item)));
} else {
commands.Add(CreateInsertCommand(item));
commands.Add(CreateInsertCommand(item.ToExpando()));
}
}
return commands;
Expand Down

0 comments on commit 32b0dee

Please sign in to comment.