Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private static GeneratedType buildAppendEventOperation(EventGraph graph, Generat
var columns = new EventsTable(graph).SelectColumns()

// Hokey, use an explicit model for writeable vs readable columns some day
.Where(x => !(x is IsArchivedColumn)).ToList();
.Where(x => x is not IsArchivedColumn).ToList();

// Hokey, but we need to move Sequence to the end
var sequence = columns.OfType<SequenceColumn>().Single();
Expand Down
2 changes: 1 addition & 1 deletion src/Marten/Internal/CodeGeneration/BulkLoaderBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public GeneratedType BuildType(GeneratedAssembly assembly)

private static List<UpsertArgument> orderArgumentsForBulkWriting(UpsertFunction upsertFunction)
{
var arguments = upsertFunction.OrderedArguments().Where(x => !(x is CurrentVersionArgument)).ToList();
var arguments = upsertFunction.OrderedArguments().Where(x => x is not CurrentVersionArgument).ToList();
// You need the document body to go last so that any metadata pushed into the document
// is serialized into the JSON data
var body = arguments.OfType<DocJsonBodyArgument>().Single();
Expand Down
2 changes: 1 addition & 1 deletion src/Marten/Internal/CompiledQueries/CompiledQueryPlan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public ICompiledQuery<TDoc, TOut> CreateQueryTemplate<TDoc, TOut>(ICompiledQuery
{
foreach (var parameter in QueryMembers) parameter.StoreValue(query);

if (!(query is IQueryPlanning) && areAllMemberValuesUnique(query))
if (query is not IQueryPlanning && areAllMemberValuesUnique(query))
{
return query;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Marten/Internal/Sessions/OperationPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void ApplyCallbacks(DbDataReader reader,
{
var first = _operations.First();

if (!(first is NoDataReturnedCall))
if (first is not NoDataReturnedCall)
{
first.Postprocess(reader, exceptions);
try
Expand Down Expand Up @@ -119,7 +119,7 @@ public async Task ApplyCallbacksAsync(DbDataReader reader,
{
var first = _operations.First();

if (!(first is NoDataReturnedCall))
if (first is not NoDataReturnedCall)
{
await first.PostprocessAsync(reader, exceptions, token).ConfigureAwait(false);
try
Expand Down
2 changes: 1 addition & 1 deletion src/Marten/Linq/Parsing/SimpleExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ protected override Expression VisitMethodCall(MethodCallExpression node)
return null;
}

if (node.Object == null && !(node.Arguments.FirstOrDefault() is MemberExpression))
if (node.Object == null && node.Arguments.FirstOrDefault() is not MemberExpression)
{
// It's a method of a static, so this has to be a constant
HasConstant = true;
Expand Down
Loading