mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-08 12:43:19 +02:00
Revert incorrectly deleted function in MigrationExtension
This commit is contained in:
parent
6b446e1404
commit
d133c82537
1 changed files with 9 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue