Skip to content

Commit

Permalink
Update Massive.Oracle.cs
Browse files Browse the repository at this point in the history
Added "ToExpando()" to BuildCommands.
Change from Massive.cs (32b0dee)
  • Loading branch information
jthope committed Nov 21, 2012
1 parent 565350a commit 390c548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Massive.Oracle.cs
Expand Up @@ -257,9 +257,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 390c548

Please sign in to comment.