Repository Analysis

dotnet/efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

20.0 Moderate AI signal View on GitHub
20.0
Adjusted Score
20.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
14,670
Stars
C#
Language
1,656,744
Lines of Code
5921
Files
14084
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 26HIGH 4845MEDIUM 18LOW 9195

Pattern Findings

14084 matches across 16 categories. Click a row to expand file-level details.

Cross-File Repetition4839 hits · 24195 pts
SeverityFileLineSnippet
HIGHtest/EFCore.Specification.Tests/JsonTypesTestBase.cs0{"prop":"https://user:password@www.contoso.com:80/home/index.htm?q1=v1\u0026q2=v2#fragmentname"}
HIGHtest/EFCore.Specification.Tests/JsonTypesTestBase.cs0{"prop":"https://user:password@www.contoso.com:80/home/index.htm?q1=v1\u0026q2=v2#fragmentname"}
HIGHtest/EFCore.Specification.Tests/JsonTypesTestBase.cs0{"prop":"https://user:password@www.contoso.com:80/home/index.htm?q1=v1\u0026q2=v2#fragmentname"}
HIGHtest/EFCore.Specification.Tests/JsonTypesTestBase.cs0{"prop":[["00000000-0000-0000-0000-000000000000","8c44242f-8e3f-4a20-8be8-98c7c1aadebd"],[],["ffffffff-ffff-ffff-ffff-ff
HIGHtest/EFCore.Specification.Tests/JsonTypesTestBase.cs0{"prop":[["00000000-0000-0000-0000-000000000000","8c44242f-8e3f-4a20-8be8-98c7c1aadebd"],[],["ffffffff-ffff-ffff-ffff-ff
HIGH…t/EFCore.Sqlite.FunctionalTests/JsonTypesSqliteTest.cs0{"prop":[["00000000-0000-0000-0000-000000000000","8c44242f-8e3f-4a20-8be8-98c7c1aadebd"],[],["ffffffff-ffff-ffff-ffff-ff
HIGH…t/EFCore.Sqlite.FunctionalTests/JsonTypesSqliteTest.cs0{"prop":[["00000000-0000-0000-0000-000000000000","8c44242f-8e3f-4a20-8be8-98c7c1aadebd"],[],["ffffffff-ffff-ffff-ffff-ff
HIGH…e.Sqlite.FunctionalTests/CustomConvertersSqliteTest.cs0select "b"."blogid", "b"."discriminator", "b"."indexervisible", "b"."isvisible", "b"."url", "b"."rssurl" from "blog" as
HIGH…e.Sqlite.FunctionalTests/CustomConvertersSqliteTest.cs0select "b"."blogid", "b"."discriminator", "b"."indexervisible", "b"."isvisible", "b"."url", "b"."rssurl" from "blog" as
HIGH…e.Sqlite.FunctionalTests/CustomConvertersSqliteTest.cs0select "b"."blogid", "b"."discriminator", "b"."indexervisible", "b"."isvisible", "b"."url", "b"."rssurl" from "blog" as
HIGH…Tests/Migrations/MigrationsInfrastructureSqliteTest.cs0create table if not exists "__efmigrationshistory" ( "migrationid" text not null constraint "pk___efmigrationshistory" p
HIGH…Tests/Migrations/MigrationsInfrastructureSqliteTest.cs0create table if not exists "__efmigrationshistory" ( "migrationid" text not null constraint "pk___efmigrationshistory" p
HIGH…Sqlite.Tests/Migrations/SqliteHistoryRepositoryTest.cs0create table if not exists "__efmigrationshistory" ( "migrationid" text not null constraint "pk___efmigrationshistory" p
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id") select "id" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id") select "id" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id") select "id" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id") select "id" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id") select "id" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id") select "id" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id") select "id" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id") select "id" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id") select "id" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0create table "ef_temp_people" ( "id" integer not null constraint "pk_people" primary key autoincrement );
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0create table "ef_temp_people" ( "id" integer not null constraint "pk_people" primary key autoincrement );
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0create table "ef_temp_people" ( "id" integer not null constraint "pk_people" primary key autoincrement );
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id", "driverlicense") select "id", "driverlicense" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id", "driverlicense") select "id", "driverlicense" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id", "driverlicense") select "id", "driverlicense" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id", "driverlicense") select "id", "driverlicense" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id", "x", "y") select "id", "x", "y" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id", "x", "y") select "id", "x", "y" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id", "x", "y") select "id", "x", "y" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("id", "x", "y") select "id", "x", "y" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("somefield") select "somefield" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("somefield") select "somefield" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("somefield") select "somefield" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_people" ("somefield") select "somefield" from "people";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0create index "ix_orders_customerid" on "orders" ("customerid");
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0create index "ix_orders_customerid" on "orders" ("customerid");
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0create index "ix_orders_customerid" on "orders" ("customerid");
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0create index "ix_orders_customerid" on "orders" ("customerid");
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0create index "ix_orders_customerid" on "orders" ("customerid");
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_orders" ("id", "customerid") select "id", "customerid" from "orders";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_orders" ("id", "customerid") select "id", "customerid" from "orders";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0insert into "ef_temp_orders" ("id", "customerid") select "id", "customerid" from "orders";
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0alter table [customers] add [numbers] nvarchar(max) not null default n'nothing';
HIGH…ite.FunctionalTests/Migrations/MigrationsSqliteTest.cs0alter table [customers] add [numbers] nvarchar(max) not null default n'nothing';
HIGH….FunctionalTests/Migrations/MigrationsSqlServerTest.cs0alter table [customers] add [numbers] nvarchar(max) not null default n'nothing';
HIGH….FunctionalTests/Migrations/MigrationsSqlServerTest.cs0alter table [customers] add [numbers] nvarchar(max) not null default n'nothing';
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
HIGH….Sqlite.FunctionalTests/Update/JsonUpdateSqliteTest.cs0select "j"."id", "j"."entitybasicid", "j"."name", "j"."ownedcollectionroot", "j"."ownedreferenceroot" from "jsonentities
4779 more matches not shown…
Over-Commented Block9112 hits · 8430 pts
SeverityFileLineSnippet
LOWeng/common/SetupNugetSources.sh1#!/usr/bin/env bash
LOWeng/common/vmr-sync.sh1#!/bin/bash
LOWeng/common/vmr-sync.sh21###
LOWeng/common/native/init-distro-rid.sh1#!/bin/sh
LOWeng/common/native/init-distro-rid.sh61
LOW…common/templates-official/variables/pool-providers.yml1# Select a pool provider based off branch name. Anything with branch name containing 'release' must go into an -Svc pool
LOWeng/common/templates/vmr-build-pr.yml1# This pipeline is used for running the VMR verification of the PR changes in repo-level PRs.
LOWeng/common/templates/variables/pool-providers.yml1# Select a pool provider based off branch name. Anything with branch name containing 'release' must go into an -Svc pool
LOWeng/common/core-templates/stages/renovate.yml1# --------------------------------------------------------------------------------------
LOWeng/common/core-templates/steps/install-microbuild.yml1parameters:
LOWeng/common/core-templates/job/renovate.yml1# --------------------------------------------------------------------------------------
LOWeng/common/core-templates/job/source-build.yml1parameters:
LOWeng/common/core-templates/job/source-build.yml21 # published by source-build.
LOW…EFCore.Tests/ChangeTracking/Internal/QueryFixupTest.cs881 // .Single();
LOW…/Metadata/Internal/ClrCollectionAccessorFactoryTest.cs1// Licensed to the .NET Foundation under one or more agreements.
LOWtest/EFCore.Tests/Metadata/Internal/PropertyBaseTest.cs1// Licensed to the .NET Foundation under one or more agreements.
LOWtest/EFCore.Tests/Metadata/Internal/EntityTypeTest.cs2781 // | | |
LOW…sts/Metadata/Conventions/BackingFieldConventionTest.cs501
LOW…e.Specification.Tests/OptimisticConcurrencyTestBase.cs641 async c => Assert.Equal(expectedPodiums, (await c.Drivers.SingleAsync(d => d.CarNumber == 1)).Podiums));
LOW…e.Specification.Tests/OptimisticConcurrencyTestBase.cs661 /// After the exception is caught the resolver action is called, after which SaveChanges is called
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3101// {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3121// },
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3141// "Subspecies": null,
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3161// "Text": "Ta1"
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3181// "Name": "M1",
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3201// }
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3221// "License": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3241// "Rating": 8,
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3261// },
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3281// "Tog": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3301// "Rating": 8,
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3321// },
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3341// "Tog": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3361// "Writer": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3381// }
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3401// "Manufacturer": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3421// "Text": "To1"
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3441// "$id": "45",
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3461// "$id": "47",
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3481// "Tag": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3501// "$id": "52",
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3521// }
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3541// },
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3561// "$id": "59",
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3581// }
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3601// },
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3621// "LastName": "lastNameWriter2",
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3641// "Title": "Ti1",
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3661// "Rating": 7,
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3681// }
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3701// "Tog": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3721// "Rating": 8,
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3741// },
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3761// "Tag": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3781// "Milk": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3801// "Charge": 1.00,
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3821// "Tag": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3841// "Milk": {
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3861// "Charge": 1.00,
LOW…st/EFCore.Specification.Tests/LazyLoadProxyTestBase.cs3881// "Writer": {
9052 more matches not shown…
Hallucination Indicators26 hits · 260 pts
SeverityFileLineSnippet
CRITICAL…tion.Tests/BulkUpdates/NorthwindBulkUpdatesTestBase.cs936 s => s.SetProperty(c => c.c.City, c => c.LastOrder.OrderDate.Value.Year.ToString()),
CRITICAL…FCore.Design.Tests/Design/Internal/CSharpHelperTest.cs588 "Microsoft.EntityFrameworkCore.Design.Internal.SimpleTestTypeFactory.StaticCreate()",
CRITICAL…FCore.Design.Tests/Design/Internal/CSharpHelperTest.cs602 "Microsoft.EntityFrameworkCore.Design.Internal.SimpleTestTypeFactory.StaticCreate(\"Jerry\")",
CRITICAL…FCore.Design.Tests/Design/Internal/CSharpHelperTest.cs617 "Microsoft.EntityFrameworkCore.Design.Internal.SimpleTestTypeFactory.StaticCreate(\"Jerry\", 77)",
CRITICAL…FCore.Relational.Tests/Metadata/RelationalModelTest.cs3719 var resolved = Microsoft.EntityFrameworkCore.Metadata.Internal.RelationalModel.GetIndex(
CRITICAL…ntions/Internal/TableValuedDbFunctionConventionTest.cs59 "Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.TableValuedDbFunctionConventionTest.GetKeyl
CRITICAL…ntions/Internal/TableValuedDbFunctionConventionTest.cs76 "Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.TableValuedDbFunctionConventionTest.GetKeyl
CRITICAL…ntions/Internal/TableValuedDbFunctionConventionTest.cs92 "Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.TableValuedDbFunctionConventionTest.GetScal
CRITICAL…erver/Extensions/SqlServerPropertyBuilderExtensions.cs110 : propertyBuilder.Metadata.DeclaringType.Model.Builder.HasSequence(name, schema, fromDataAnnotation);
CRITICAL…erver/Extensions/SqlServerPropertyBuilderExtensions.cs223 : propertyBuilder.Metadata.DeclaringType.Model.Builder.HasSequence(name, schema, fromDataAnnotation);
CRITICAL…sign/Scaffolding/Internal/CSharpEntityTypeGenerator.cs319 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("EntityType");
CRITICAL…sign/Scaffolding/Internal/CSharpEntityTypeGenerator.cs353 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Options");
CRITICAL…sign/Scaffolding/Internal/CSharpEntityTypeGenerator.cs386 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("NamespaceHint");
CRITICAL…esign/Scaffolding/Internal/CSharpDbContextGenerator.cs522 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Model");
CRITICAL…esign/Scaffolding/Internal/CSharpDbContextGenerator.cs556 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Options");
CRITICAL…esign/Scaffolding/Internal/CSharpDbContextGenerator.cs589 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("NamespaceHint");
CRITICALsrc/ef/Generators/BundleProgramGenerator.cs90 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("ContextType");
CRITICALsrc/ef/Generators/BundleProgramGenerator.cs104 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Assembly");
CRITICALsrc/ef/Generators/BundleProgramGenerator.cs118 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("StartupAssembly");
CRITICALsrc/ef/Generators/BundleProjectGenerator.cs118 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("TargetFramework");
CRITICALsrc/ef/Generators/BundleProjectGenerator.cs132 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("EFCoreVersion");
CRITICALsrc/ef/Generators/BundleProjectGenerator.cs146 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Project");
CRITICALsrc/ef/Generators/BundleProjectGenerator.cs160 object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("StartupProject");
CRITICALsrc/EFCore/DbContextOptions.cs149 && p.First.Value.Extension.Info.ShouldUseSameServiceProvider(p.Second.Value.Extension.Info));
CRITICAL…/EFCore/Metadata/Internal/InternalForeignKeyBuilder.cs2954 Metadata.DeclaringEntityType.Model.ConventionDispatcher.Tracker.Update(removedForeignKey, newRelationshipBui
CRITICAL…Metadata/Conventions/ComplexTypeAttributeConvention.cs44 complexType.Builder.Metadata.Model.Builder.ComplexType(memberType);
Fake / Example Data57 hits · 48 pts
SeverityFileLineSnippet
LOWtest/EFCore.Tests/ChangeTracking/PropertyEntryTest.cs5214 entity.Address = new Address { Street = "123 Main St", ZipCode = null };
LOW…ecification.Tests/Query/NorthwindWhereQueryTestBase.cs1316 => ss.Set<Order>().Where(o => o.CustomerID == "John Doe").Select(o => o.CustomerID).FirstOrDefault().Len
LOW…cification.Tests/Query/NorthwindSelectQueryTestBase.cs1348 => (int?)ss.Set<Order>().Where(o => o.CustomerID == "John Doe").Select(o => o.CustomerID).FirstOrDefault
LOW…cification.Tests/Query/NorthwindSelectQueryTestBase.cs1349 ss => ss.Set<Customer>().Select(c => ss.Set<Order>().Where(o => o.CustomerID == "John Doe").Select(o => o.Cu
LOW…l.Specification.Tests/Migrations/MigrationsTestBase.cs709 .HasDefaultValue("John Doe"),
LOW…l.Specification.Tests/Migrations/MigrationsTestBase.cs716 Assert.Contains("John Doe", nameColumn.DefaultValueSql);
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs27 company.Contacts!.Add(new Contact { Name = "New Contact", PhoneNumbers = ["555-0000"] });
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs45 Assert.Equal("555-0000", company.Contacts[2].PhoneNumbers[0]);
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs193 Name = "John Doe",
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs194 PhoneNumbers = ["555-1234", "555-5678"],
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs197 Street = "123 Main St",
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs206 PhoneNumbers = ["555-9876"],
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs228 Assert.Equal("John Doe", john.Name);
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs229 Assert.Equal("123 Main St", john.Address.Street);
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs248 company.Contacts = [new Contact { Name = "Contact 1", PhoneNumbers = ["555-1111"] }];
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs329 company.Employees![0].PhoneNumbers.Add("555-9999");
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs341 Assert.Equal("555-0001", employee.PhoneNumbers[0]);
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs342 Assert.Equal("555-9999", employee.PhoneNumbers[1]);
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs418 PhoneNumbers = ["555-1111"],
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs455 PhoneNumbers = ["555-7777", "555-8888"],
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs476 Assert.Equal("555-7777", employee.PhoneNumbers[0]);
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs697 new Contact { Name = "First Contact", PhoneNumbers = ["555-1234", "555-5678"] },
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs698 new Contact { Name = "Second Contact", PhoneNumbers = ["555-9876", "555-5432"] }
LOW…on.Tests/Update/ComplexCollectionJsonUpdateTestBase.cs705 PhoneNumbers = ["555-0001"],
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs19@p0='[{"Name":"First Contact","PhoneNumbers":["555-1234","555-5678"]},{"Name":"Second Contact","PhoneNumbers":["555-9876
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs34@p0='[{"Name":"Second Contact","PhoneNumbers":["555-9876","555-5432"]}]' (Nullable = false) (Size = 66)
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs49@p0='[{"Name":"First Contact - Modified","PhoneNumbers":["555-1234","555-5678"]},{"Name":"Second Contact","PhoneNumbers"
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs64@p0='[{"Name":"Second Contact","PhoneNumbers":["555-9876","555-5432"]},{"Name":"First Contact","PhoneNumbers":["555-1234
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs103@p0='[{"Name":"John Doe","PhoneNumbers":["555-1234","555-5678"],"Address":{"City":"Seattle","Country":"USA","PostalCode"
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs103@p0='[{"Name":"John Doe","PhoneNumbers":["555-1234","555-5678"],"Address":{"City":"Seattle","Country":"USA","PostalCode"
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs103@p0='[{"Name":"John Doe","PhoneNumbers":["555-1234","555-5678"],"Address":{"City":"Seattle","Country":"USA","PostalCode"
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs118@p0='[{"Name":"Contact 1","PhoneNumbers":["555-1111"]}]' (Nullable = false) (Size = 50)
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs164@p0='[{"Name":"Initial Employee","PhoneNumbers":["555-0001","555-9999"],"Address":{"City":"Initial City","Country":"USA"
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs179@p0='[{"Name":"Initial Employee","PhoneNumbers":["555-0001"],"Address":{"City":"Modified City","Country":"USA","PostalCo
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs209@p0='[{"Name":"New Employee","PhoneNumbers":["555-1111"],"Address":{"City":"New City","Country":"USA","PostalCode":"1234
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs224@p0='[{"Name":"Replacement Employee","PhoneNumbers":["555-7777","555-8888"],"Address":{"City":"Replace City","Country":"
LOW…lTests/Update/ComplexCollectionJsonUpdateSqliteTest.cs239@p0='[{"Name":"Initial Employee","PhoneNumbers":["555-0001"],"Address":{"City":"Initial City","Country":"USA","PostalCod
LOW….FunctionalTests/Migrations/MigrationsSqlServerTest.cs589ALTER TABLE [People] ADD [Name] nvarchar(max) NOT NULL DEFAULT N'John Doe';
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs19@p0='[{"Name":"First Contact","PhoneNumbers":["555-1234","555-5678"]},{"Name":"Second Contact","PhoneNumbers":["555-9876
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs36@p0='[{"Name":"Second Contact","PhoneNumbers":["555-9876","555-5432"]}]' (Nullable = false) (Size = 66)
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs70@p0='[{"Name":"First Contact - Modified","PhoneNumbers":["555-1234","555-5678"]},{"Name":"Second Contact","PhoneNumbers"
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs87@p0='[{"Name":"Second Contact","PhoneNumbers":["555-9876","555-5432"]},{"Name":"First Contact","PhoneNumbers":["555-1234
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs132@p0='[{"Name":"John Doe","PhoneNumbers":["555-1234","555-5678"],"Address":{"City":"Seattle","Country":"USA","PostalCode"
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs132@p0='[{"Name":"John Doe","PhoneNumbers":["555-1234","555-5678"],"Address":{"City":"Seattle","Country":"USA","PostalCode"
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs132@p0='[{"Name":"John Doe","PhoneNumbers":["555-1234","555-5678"],"Address":{"City":"Seattle","Country":"USA","PostalCode"
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs149@p0='[{"Name":"Contact 1","PhoneNumbers":["555-1111"]}]' (Nullable = false) (Size = 50)
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs201@p0='[{"Name":"Initial Employee","PhoneNumbers":["555-0001","555-9999"],"Address":{"City":"Initial City","Country":"USA"
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs218@p0='[{"Name":"Initial Employee","PhoneNumbers":["555-0001"],"Address":{"City":"Modified City","Country":"USA","PostalCo
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs252@p0='[{"Name":"New Employee","PhoneNumbers":["555-1111"],"Address":{"City":"New City","Country":"USA","PostalCode":"1234
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs269@p0='[{"Name":"Replacement Employee","PhoneNumbers":["555-7777","555-8888"],"Address":{"City":"Replace City","Country":"
LOW…sts/Update/ComplexCollectionJsonUpdateSqlServerTest.cs286@p0='[{"Name":"Initial Employee","PhoneNumbers":["555-0001"],"Address":{"City":"Initial City","Country":"USA","PostalCod
LOW…tionalTests/Query/NorthwindSelectQuerySqlServerTest.cs1457 WHERE [o].[CustomerID] = N'John Doe')
LOW…ctionalTests/Query/NorthwindWhereQuerySqlServerTest.cs1688 WHERE [o].[CustomerID] = N'John Doe') = 0
LOW…FCore.InMemory.FunctionalTests/DatabaseInMemoryTest.cs105 new SimpleContext.Artist { ArtistId = "JDId", Name = "John Doe" });
LOW…FCore.InMemory.FunctionalTests/DatabaseInMemoryTest.cs114 Assert.Equal("John Doe", data[0].Name);
LOW…lational/Extensions/RelationalDbFunctionsExtensions.cs19 /// <c>WHERE customer.name COLLATE 'de_DE' = 'John Doe'</c>.
LOWsrc/EFCore/README.md36context.Customers.Add(new Customer { Name = "John Doe" });
Synthetic Comment Markers6 hits · 45 pts
SeverityFileLineSnippet
HIGH…sign/Scaffolding/Internal/CSharpEntityTypeGenerator.cs3// This code was generated by a tool.
HIGH…esign/Scaffolding/Internal/CSharpDbContextGenerator.cs3// This code was generated by a tool.
HIGH…Design/Query/Internal/PrecompiledQueryCodeGenerator.cs94 // TODO: Ignore our auto-generated code! Also compiled model, generated code (comment, filename...?).
HIGH…FCore.Analyzers/Properties/AnalyzerStrings.Designer.cs3// This code was generated by a tool.
HIGHsrc/ef/Generators/BundleProgramGenerator.cs3// This code was generated by a tool.
HIGHsrc/ef/Generators/BundleProjectGenerator.cs3// This code was generated by a tool.
Decorative Section Separators6 hits · 27 pts
SeverityFileLineSnippet
MEDIUMeng/common/core-templates/stages/renovate.yml1# --------------------------------------------------------------------------------------
MEDIUMeng/common/core-templates/stages/renovate.yml3# --------------------------------------------------------------------------------------
MEDIUMeng/common/core-templates/stages/renovate.yml9# --------------------------------------------------------------------------------------
MEDIUMeng/common/core-templates/job/renovate.yml1# --------------------------------------------------------------------------------------
MEDIUMeng/common/core-templates/job/renovate.yml3# --------------------------------------------------------------------------------------
MEDIUMeng/common/core-templates/job/renovate.yml17# --------------------------------------------------------------------------------------
AI Slop Vocabulary10 hits · 26 pts
SeverityFileLineSnippet
LOW…ommon/core-templates/steps/enable-internal-sources.yml24 # If running on dnceng (internal project), just use the default behavior for NuGetAuthenticate.
MEDIUM…e.Specification.Tests/ConferencePlannerTestBaseData.cs134 ""description"": ""Why would you ever want to introduce unmanaged code into your managed codebase when recen
MEDIUM…e.Specification.Tests/ConferencePlannerTestBaseData.cs464 ""description"": ""Why would you ever want to introduce unmanaged code into your managed codebase when rec
MEDIUM…ExpressionVisitor.ShaperProcessingExpressionVisitor.cs150 /// Json entities are added after includes so that we can utilize tracking (includes will track all json ent
MEDIUM…re.Relational/Query/SqlExpressions/SelectExpression.cs2208 // TODO: We could make this little more robust by allow the indexes to be different. See issue#2
MEDIUM…re.Relational/Query/SqlExpressions/SelectExpression.cs2329 // TODO: We could make this little more robust by allow the indexes to be different. See
MEDIUMsrc/EFCore.Cosmos/Properties/CosmosStrings.Designer.cs693 /// Transactional batches will skip bulk execution. Use DatabaseFacade.AutoTransactionBehavior = AutoTransac
MEDIUMsrc/EFCore.Cosmos/Diagnostics/CosmosEventId.cs200 /// will skip bulk execution. Use AutoTransactionBehavior.Never to leverage bulk execution. If batching was inte
MEDIUM…Cosmos/Infrastructure/CosmosDbContextOptionsBuilder.cs223 /// See <see href="https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-manage-consistency?tabs=portal
MEDIUM…Cosmos/Infrastructure/CosmosDbContextOptionsBuilder.cs223 /// See <see href="https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-manage-consistency?tabs=portal
Redundant / Tautological Comments9 hits · 14 pts
SeverityFileLineSnippet
LOWeng/common/tools.sh323 # Check if the script is older than 30 days using timestamp file
LOWeng/common/tools.sh425 # Check if the toolset has already been extracted
LOWeng/common/SetupNugetSources.sh59 # Check if disabledPackageSources section exists
LOWeng/common/SetupNugetSources.sh65 # Check if this source name is disabled
LOWeng/common/SetupNugetSources.sh85 # Check if source already exists
LOWeng/common/SetupNugetSources.sh115 # Check if disabledPackageSources section exists
LOWeng/common/SetupNugetSources.sh185 # Check if there is no existing credential for this FeedName
LOWeng/common/core-templates/steps/source-build.yml31 # Check if AzDO substitutes in a build config from a variable, and use it if so.
LOWeng/common/core-templates/steps/install-microbuild.yml64 # Check if ESRP is disabled while SignType is real
Example Usage Blocks4 hits · 7 pts
SeverityFileLineSnippet
LOWeng/common/native/install-dependencies.sh7# Usage:
LOW…common/templates-official/variables/pool-providers.yml12# How to use:
LOWeng/common/templates/variables/pool-providers.yml12# How to use:
LOWeng/common/core-templates/job/renovate.yml11# Usage:
Deep Nesting6 hits · 6 pts
SeverityFileLineSnippet
LOWeng/common/cross/install-debs.py20
LOWeng/common/cross/install-debs.py192
LOWeng/common/cross/install-debs.py217
LOWeng/common/cross/install-debs.py255
LOWeng/common/cross/install-debs.py289
LOWeng/common/cross/install-debs.py333
Excessive Try-Catch Wrapping2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMeng/common/cross/install-debs.py42 print(f"Error downloading {url}: {type(e).__name__} - {e}. Retrying...")
MEDIUMeng/common/cross/install-debs.py202 print(f"Error: Package '{current}' was not found in the available packages.")
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMeng/common/cross/build-rootfs.sh635 # Create the symlink in the same directory
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
LOW…qlServer/Migrations/SqlServerMigrationsSqlGenerator.cs3246 // when adding (non-period) column to an existing temporal table we need to check if we have dis
LOW….Cosmos/Metadata/Conventions/CosmosJsonIdConvention.cs150 // But first, we need to check if the original property found pointing to JSON `id` is not our computed property
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWeng/common/cross/install-debs.py49async def download_deb_files_parallel(mirror, packages, tmp_dir):
LOWeng/common/cross/install-debs.py65async def download_package_index_parallel(mirror, arch, suites, check_sig, keyring):
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWsrc/ef/Properties/Resources.Designer.cs23 /// Don't forget to copy appsettings.json alongside your bundle if you need it to apply migrations.
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOWeng/common/cross/install-debs.py18