diff --git a/dotnet-efcore/DotnetEfNotFoundError/CodeFirstMigration/CodeFirstMigration.csproj b/dotnet-efcore/DotnetEfNotFoundError/CodeFirstMigration/CodeFirstMigration.csproj index 9da450ed89..51ff7a1b39 100644 --- a/dotnet-efcore/DotnetEfNotFoundError/CodeFirstMigration/CodeFirstMigration.csproj +++ b/dotnet-efcore/DotnetEfNotFoundError/CodeFirstMigration/CodeFirstMigration.csproj @@ -2,18 +2,19 @@ Exe - net6.0 + net10.0 enable enable - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + + diff --git a/dotnet-efcore/DotnetEfNotFoundError/CodeFirstMigration/Customer.cs b/dotnet-efcore/DotnetEfNotFoundError/CodeFirstMigration/Customer.cs index f4b6278624..4a7297db6e 100644 --- a/dotnet-efcore/DotnetEfNotFoundError/CodeFirstMigration/Customer.cs +++ b/dotnet-efcore/DotnetEfNotFoundError/CodeFirstMigration/Customer.cs @@ -2,21 +2,11 @@ { public class Customer { - public Guid Id { get; } - public string? FirstName { get; } - public string? LastName { get; } + public Guid Id { get; set; } + public string? FirstName { get; set; } + public string? LastName { get; set; } public int Age { get; set; } - public string? Address { get; } - public string? CardNumber { get; } - - public Customer(Guid id, string? firstName, string? lastName, int age, string? address, string? cardNumber) - { - Id = id; - FirstName = firstName; - LastName = lastName; - Age = age; - Address = address; - CardNumber = cardNumber; - } + public string? Address { get; set; } + public string? CardNumber { get; set; } } } diff --git a/dotnet-efcore/DotnetEfNotFoundError/dotnet-tools.json b/dotnet-efcore/DotnetEfNotFoundError/dotnet-tools.json new file mode 100644 index 0000000000..39007e0217 --- /dev/null +++ b/dotnet-efcore/DotnetEfNotFoundError/dotnet-tools.json @@ -0,0 +1,13 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "10.0.13", + "commands": [ + "dotnet-ef" + ], + "rollForward": false + } + } +} \ No newline at end of file