using System.Collections.Immutable; using System.Data; namespace Connected.Entities.Storage; public class StorageOperation : IStorageOperation { private List _parameters; public StorageOperation() { _parameters = new(); } public string CommandText { get; init; } public CommandType CommandType { get; init; } = CommandType.Text; public ImmutableList? Parameters => _parameters.ToImmutableList(); public int CommandTimeout { get; init; } = 30; public DataConcurrencyMode Concurrency { get; init; } = DataConcurrencyMode.Enabled; public void AddParameter(IStorageParameter parameter) { _parameters.Add(parameter); } }