public PostgresQueryCommand(IServiceProvider serviceProvider, IDbFragment <TResult> fragment) : base(serviceProvider) { Check.IsNotNull(fragment, nameof(fragment)); selectClause = serviceProvider.GetRequiredService <SelectClause>(); selectClause.AddSelection(fragment); }