An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/Patcher/DB/StoredProcedureReference.cs

51 lines
1.1 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Patcher.DB
{
class StoredProcedureReference
{
public enum ParameterDirection
{
In,
Out,
}
public class ParameterDescription
{
public readonly string name;
public readonly ParameterDirection direction;
public readonly string type;
public ParameterDescription(string name, ParameterDirection direction, string type)
{
this.name = name;
this.direction = direction;
this.type = type;
}
}
public readonly string packageName;
public readonly string procedureName;
public readonly ParameterDescription[] parameters;
public StoredProcedureReference(string packageName, string procedureName, params ParameterDescription[] parameters)
{
this.packageName = packageName;
this.procedureName = procedureName;
this.parameters = parameters;
}
public StoredProcedureReference(string packageName, string procedureName, IEnumerable<ParameterDescription> parameters)
: this(packageName, procedureName, parameters.ToArray())
{
}
}
}