Skip to content

Commit 99824aa

Browse files
authored
Merge pull request #75 from WeihanLi/dev
10.0.0 preview 1
2 parents fac7df1 + fb9e01a commit 99824aa

File tree

16 files changed

+41
-40
lines changed

16 files changed

+41
-40
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CodeSpace",
3-
"image": "mcr.microsoft.com/dotnet/sdk:8.0",
3+
"image": "mcr.microsoft.com/dotnet/sdk:10.0-preview",
44
// Install needed extensions
55
"extensions": [
66
"ms-dotnettools.csharp",

.github/workflows/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup .NET SDK
1313
uses: actions/setup-dotnet@v4
1414
with:
15-
dotnet-version: 9.0.x
15+
dotnet-version: 10.0.x
1616
- name: dotnet info
1717
run: dotnet --info
1818
- name: build

.github/workflows/dotnet-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Setup .NET SDK
1111
uses: actions/setup-dotnet@v4
1212
with:
13-
dotnet-version: 9.0.x
13+
dotnet-version: 10.0.x
1414
- name: build
1515
run: dotnet build
1616
- name: format

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup .NET SDK
1313
uses: actions/setup-dotnet@v4
1414
with:
15-
dotnet-version: 9.0.x
15+
dotnet-version: 10.0.x
1616
- name: Build
1717
shell: pwsh
1818
run: .\build.ps1 --stable=true

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<Import Project="./build/version.props" />
33

44
<PropertyGroup>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
<LangVersion>preview</LangVersion>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>enable</Nullable>
9-
<CommonVersion>1.0.74</CommonVersion>
10-
<EFVersion>9.0.0</EFVersion>
9+
<CommonVersion>1.0.76</CommonVersion>
10+
<EFVersion>10.0.0-preview.2.25163.8</EFVersion>
1111

1212
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1313
<EmbedUntrackedSources>true</EmbedUntrackedSources>

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ steps:
1111
displayName: 'Use .NET sdk'
1212
inputs:
1313
packageType: sdk
14-
version: 9.0.x
14+
version: 10.0.x
1515
includePreviewVersions: true
1616

1717
- script: dotnet --info

build/version.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
3-
<VersionMajor>9</VersionMajor>
4-
<VersionMinor>1</VersionMinor>
3+
<VersionMajor>10</VersionMajor>
4+
<VersionMinor>0</VersionMinor>
55
<VersionPatch>0</VersionPatch>
66
<VersionRevision>0</VersionRevision>
77
<VersionPrefix Condition="'$(VersionRevision)'=='0' or '$(VersionRevision)'==''">$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>

samples/WeihanLi.EntityFramework.Sample/DbContextInterceptorSamples.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ private static async Task InterceptorTest2()
4848

4949
file sealed class FileTestDbContext(DbContextOptions<FileTestDbContext> options) : DbContext(options)
5050
{
51-
public DbSet<TestEntity> Entities { get; set; }
51+
public DbSet<TestEntity> Entities { get; set; } = null!;
5252
}
5353

5454
file sealed class TestEntity
5555
{
5656
public int Id { get; set; }
57-
public string Name { get; set; }
57+
public string? Name { get; set; }
5858
}
5959

6060
file sealed class SavingInterceptor : SaveChangesInterceptor

samples/WeihanLi.EntityFramework.Sample/WeihanLi.EntityFramework.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<ProjectReference Include="..\WeihanLi.EntityFramework.SourceGenerator\WeihanLi.EntityFramework.SourceGenerator.csproj" OutputItemType="analyzer" ReferenceOutputAssembly="false" />
15+
<ProjectReference Include="..\..\src\WeihanLi.EntityFramework.SourceGenerator\WeihanLi.EntityFramework.SourceGenerator.csproj" OutputItemType="analyzer" ReferenceOutputAssembly="false" />
1616
</ItemGroup>
1717

1818
</Project>

src/WeihanLi.EntityFramework.SourceGenerator/EFExtensionsGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public sealed class EFExtensionsGenerator : IIncrementalGenerator
1313
namespace WeihanLi.EntityFramework
1414
{
1515
[AttributeUsage(System.AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
16-
public sealed class EFExtensionsAttribute;
16+
public sealed class EFExtensionsAttribute;
1717
}
1818
""";
1919

@@ -39,7 +39,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
3939
var dbContextName = dbContextDeclaration!.Identifier.Text;
4040
var repositoryNamespace = dbContextDeclaration.Parent!.GetNamespace();
4141
var generatedCode = GenerateRepositoryCode(dbContextName, repositoryNamespace, templates);
42-
spc.AddSource($"{dbContextName}Repository.g.cs", SourceText.From(generatedCode, Encoding.UTF8));
42+
// spc.AddSource($"{dbContextName}Repository.g.cs", SourceText.From(generatedCode, Encoding.UTF8));
4343
});
4444
}
4545

0 commit comments

Comments
 (0)