Skip to content

Commit

Permalink
Merge pull request migratordotnet#6 from Schlupp77/master
Browse files Browse the repository at this point in the history
Completed Change for SQLite for UInt16 and UInt32
  • Loading branch information
jogibear9988 committed Oct 25, 2013
2 parents e450cd0 + 75ec362 commit fd9403e
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,24 @@ public override void RemoveAllIndexes(string table)
}

changeColumnInternal(table, columnDefs.Select(x => x.Name).ToArray(), columnDefs);
}

protected override void ConfigureParameterWithValue(IDbDataParameter parameter, int index, object value)
{
if (value is UInt16)
{
parameter.DbType = DbType.Int32;
parameter.Value = value;
}
else if (value is UInt32)
{
parameter.DbType = DbType.Int64;
parameter.Value = value;
}
else
{
base.ConfigureParameterWithValue(parameter, index, value);
}
}
}
}
}

0 comments on commit fd9403e

Please sign in to comment.