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.
Connected.Framework/Connected.Data/Storage/IStorageConnection.cs

26 lines
613 B

using Connected.Entities.Storage;
using System.Collections.Immutable;
using System.Data;
namespace Connected.Data.Storage
{
public interface IStorageConnection : IMiddleware, IAsyncDisposable, IDisposable
{
StorageConnectionMode Behavior { get; }
string ConnectionString { get; }
Task Initialize(StorageConnectionArgs args);
Task Commit();
Task Rollback();
Task Close();
Task<int> Execute(IStorageCommand command);
Task<ImmutableList<T>> Query<T>(IStorageCommand command);
Task<T?> Select<T>(IStorageCommand command);
Task<IDataReader?> OpenReader(IStorageCommand command);
}
}