24 lines
605 B
C#
24 lines
605 B
C#
using System;
|
|
using System.Data;
|
|
using System.Data.Common;
|
|
using Swarmops.Basic.Types;
|
|
|
|
namespace Swarmops.Database
|
|
{
|
|
public partial class SwarmDb
|
|
{
|
|
public int GetTemporaryIdentity()
|
|
{
|
|
using (DbConnection connection = GetMySqlDbConnection())
|
|
{
|
|
connection.Open();
|
|
|
|
DbCommand command = GetDbCommand("CreateTemporaryIdentity", connection);
|
|
command.CommandType = CommandType.StoredProcedure;
|
|
|
|
return Convert.ToInt32(command.ExecuteScalar());
|
|
}
|
|
}
|
|
|
|
}
|
|
} |