Revert incorrectly deleted function in MigrationExtension

This commit is contained in:
Auggie 2026-03-29 00:35:53 +01:00
parent 6b446e1404
commit d133c82537

View file

@ -22,6 +22,15 @@ public static ICreateTableColumnOptionOrWithColumnSyntax TableForModel(this ICre
return expressionRoot.Table(name).WithColumn("Id").AsInt32().PrimaryKey().Identity();
}
public static IDbCommand CreateCommand(this IDbConnection conn, IDbTransaction tran, string query)
{
var command = conn.CreateCommand();
command.Transaction = tran;
command.CommandText = query;
return command;
}
public static void AddParameter(this IDbCommand command, object value)
{
var parameter = command.CreateParameter();