sharp-chat/SharpChat.Common/Database/IDatabaseCommand.cs

22 lines
659 B
C#
Raw Permalink Normal View History

2022-08-30 15:05:29 +00:00
using System;
namespace SharpChat.Database {
public interface IDatabaseCommand : IDisposable {
IDatabaseConnection Connection { get; }
string CommandString { get; }
int CommandTimeout { get; set; }
IDatabaseParameter AddParameter(string name, object value);
IDatabaseParameter AddParameter(string name, DatabaseType type);
IDatabaseParameter AddParameter(IDatabaseParameter param);
void AddParameters(IDatabaseParameter[] @params);
void ClearParameters();
void Prepare();
int Execute();
IDatabaseReader ExecuteReader();
object ExecuteScalar();
}
}