Skip to content

Commit d72c6f0

Browse files
committed
Tweak public api. Add multicolumn primary key fluent and set api
1 parent 2ea0053 commit d72c6f0

196 files changed

Lines changed: 4779 additions & 8514 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,12 @@ dotnet_diagnostic.IDE0008.severity = none
8383

8484
# IDE0022: Use block body for method
8585
dotnet_diagnostic.IDE0022.severity = none
86+
87+
# IDE0024: Use block body for operator
88+
dotnet_diagnostic.IDE0024.severity = none
89+
90+
# IDE0011: Add braces
91+
dotnet_diagnostic.IDE0011.severity = silent
92+
93+
# IDE0058: Expression value is never used
94+
dotnet_diagnostic.IDE0058.severity = silent

Directory.Build.props

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Company>RepoDb</Company>
66
<Product>RepoDb</Product>
77
<Version Condition="'$(Version)' == ''">0.0.1-dev</Version>
8-
<LangVersion>default</LangVersion>
8+
<LangVersion>14</LangVersion>
99
<Copyright>Copyright © 2020-2026</Copyright>
1010
<PackageProjectUrl>https://repodb.net/</PackageProjectUrl>
1111
<RepositoryType>Github</RepositoryType>
@@ -25,18 +25,12 @@
2525
<TestTargetFrameworks>net10.0;net9.0;net8.0;net48</TestTargetFrameworks>
2626
<TestTargetOutputType>Exe</TestTargetOutputType>
2727
<TestingPlatformDotnetTestRunner>true</TestingPlatformDotnetTestRunner>
28-
<LangVersion>preview</LangVersion>
28+
<GenerateDocumentationFile Condition="$([System.String]::Copy('$(MSBuildProjectName)').ToLower().Contains('test')) == 'false'">true</GenerateDocumentationFile>
2929
</PropertyGroup>
3030
<PropertyGroup>
3131
<!-- Reduce tests while running inside VS -->
3232
<TestTargetFrameworks Condition="'$(VisualStudioVersion)' != '' and '$(BuildingInsideVisualStudio)' == 'true'">net10.0</TestTargetFrameworks>
3333
</PropertyGroup>
34-
<Target Name="SetGenerateBeforeBuild" BeforeTargets="Build">
35-
<!-- IsPackable is set in project files, so delay evaluating this -->
36-
<PropertyGroup>
37-
<GenerateDocumentationFile Condition="'$(IsPackable)' != 'false'">true</GenerateDocumentationFile>
38-
</PropertyGroup>
39-
</Target>
4034
<ItemGroup Condition=" '$(MSBuildProjectName)' != '' and $(MSBuildProjectName.Contains('Test')) and '$(BuildingInsideVisualStudio)' != 'true'">
4135
<PackageReference Include="GitHubActionsTestLogger" />
4236
</ItemGroup>

Directory.Packages.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
<PackageVersion Include="Microsoft.Bcl.HashCode" Version="6.0.0" />
2020
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="4.14.0" />
2121
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" />
22+
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="5.0.0-1.25277.114" />
2223
<PackageVersion Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0" />
2324
<PackageVersion Include="Microsoft.Data.SqlClient" Version="6.1.4" />
2425
<PackageVersion Include="Microsoft.Data.Sqlite" Version="10.0.5" />
25-
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.16" />
26+
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.18" />
2627
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.18" />
2728
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="10.0.201" />
2829
<PackageVersion Include="Microsoft.SqlServer.Types" Version="170.1000.7" />
@@ -44,7 +45,7 @@
4445
<PackageVersion Include="System.Memory" Version="4.6.3" />
4546
<PackageVersion Include="System.Text.Json" Version="10.0.5" />
4647
</ItemGroup>
47-
<ItemGroup Condition="'$(BuildingInsideVisualStudio)' != 'true'">
48+
<ItemGroup Condition="'$(BuildingInsideVisualStudio)' != 'true' and '$(Configuration)' == 'Release'">
4849
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
4950
</ItemGroup>
5051
</Project>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![MSBuild-CI](https://github.com/AmpScm/RepoDB/actions/workflows/build.yml/badge.svg)](https://github.com/AmpScm/RepoDB/actions/workflows/build.yml)
1+
[![MSBuild-CI](https://github.com/AmpScm/RepoDb/actions/workflows/build.yml/badge.svg)](https://github.com/AmpScm/RepoDb/actions/workflows/build.yml)
22
[![Version](https://img.shields.io/nuget/v/AmpScm.RepoDb?&logo=nuget)](https://www.nuget.org/packages/AmpScm.RepoDb)
33
[![GitterChat](https://img.shields.io/gitter/room/mikependon/RepoDb?&logo=gitter&color=48B293)](https://gitter.im/RepoDb/community)
44

RepoDb.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
</Folder>
3737
<Folder Name="/Z-Benchmarks/">
3838
<Project Path="src/RepoDb.Benchmarks.PostgreSql/RepoDb.Benchmarks.PostgreSql.csproj" />
39+
<Project Path="src/RepoDb.Benchmarks.SqlServer/RepoDb.Benchmarks.SqlServer.csproj" />
3940
</Folder>
4041
<Folder Name="/Z-DirectoryFiles/" />
4142
</Solution>

src/RepoDb.Analyzer/DbAttributeFormatAnalyzer.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace RepoDb.Analyzer;
99

10+
/// <summary>
11+
///
12+
/// </summary>
1013
[DiagnosticAnalyzer(LanguageNames.CSharp)]
1114
public class DbAttributeFormatAnalyzer : DiagnosticAnalyzer
1215
{
@@ -28,9 +31,13 @@ public class DbAttributeFormatAnalyzer : DiagnosticAnalyzer
2831
isEnabledByDefault: true,
2932
description: "Use the 'Schema' property in the Table attribute instead of encoding schema and table in a single string.");
3033

34+
/// <summary>
35+
///
36+
/// </summary>
3137
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
3238
ImmutableArray.Create(EscapedIdentifierRule, TableSchemaFormatRule);
3339

40+
/// <inheritdoc />
3441
public override void Initialize(AnalysisContext context)
3542
{
3643
context.EnableConcurrentExecution();

src/RepoDb.Analyzer/DbExtensionAnalyzer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace RepoDb.Analyzer;
88

9+
/// <summary>
10+
///
11+
/// </summary>
912
[DiagnosticAnalyzer(LanguageNames.CSharp)]
1013
public class RepoDbEntityAnalyzer : DiagnosticAnalyzer
1114
{
@@ -14,8 +17,10 @@ public class RepoDbEntityAnalyzer : DiagnosticAnalyzer
1417
DiagnosticSeverity.Error,
1518
isEnabledByDefault: true);
1619

20+
/// <inheritdoc />
1721
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(Rule);
1822

23+
/// <inheritdoc />
1924
public override void Initialize(AnalysisContext context)
2025
{
2126
context.EnableConcurrentExecution();

src/RepoDb.Benchmarks.PostgreSql/RepoDb.Benchmarks.PostgreSql.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
66
<IsPackable>false</IsPackable>
7+
<GenerateDocumentationFile>false</GenerateDocumentationFile>
78
</PropertyGroup>
89
<ItemGroup>
910
<PackageReference Include="BenchmarkDotNet" />
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
54
<ImplicitUsings>enable</ImplicitUsings>
5+
<TargetFrameworks>net10.0;net9.0;net8.0</TargetFrameworks>
66
<IsPackable>false</IsPackable>
7+
<GenerateDocumentationFile>false</GenerateDocumentationFile>
78
</PropertyGroup>
89
<ItemGroup>
910
<PackageReference Include="BenchmarkDotNet" />
@@ -12,11 +13,14 @@
1213
<PackageReference Include="Microsoft.EntityFrameworkCore" />
1314
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" />
1415
<PackageReference Include="NHibernate" />
15-
<PackageReference Include="System.Linq.Async" />
1616
</ItemGroup>
1717
<ItemGroup>
18-
<ProjectReference Include="..\..\RepoDb.Extensions\RepoDb.SqlServer.BulkOperations\RepoDb.SqlServer.BulkOperations\RepoDb.SqlServer.BulkOperations.csproj" />
19-
<ProjectReference Include="..\..\RepoDb.PostgreSql\RepoDb.PostgreSql\RepoDb.PostgreSql.csproj" />
20-
<ProjectReference Include="..\..\RepoDb.SqlServer\RepoDb.SqlServer\RepoDb.SqlServer.csproj" />
18+
<ProjectReference Include="..\RepoDb\RepoDb.csproj" />
19+
<ProjectReference Include="..\RepoDb.SqlServer.BulkOperations\RepoDb.SqlServer.BulkOperations.csproj" />
20+
<ProjectReference Include="..\RepoDb.PostgreSql\RepoDb.PostgreSql.csproj" />
21+
<ProjectReference Include="..\RepoDb.SqlServer\RepoDb.SqlServer.csproj" />
22+
</ItemGroup>
23+
<ItemGroup>
24+
<Compile Include="..\RepoDb\Compat.cs" />
2125
</ItemGroup>
2226
</Project>

src/RepoDb.Core.UnitTests/Cachers/ClassMappedNameCacheTest.cs renamed to src/RepoDb.Core.UnitTests/Caches/ClassMappedNameCacheTest.cs

File renamed without changes.

0 commit comments

Comments
 (0)