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
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<CommonVersion>1.0.68</CommonVersion>
<EFVersion>8.0.8</EFVersion>
<CommonVersion>1.0.71</CommonVersion>
<EFVersion>8.0.10</EFVersion>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## Intro

EntityFramework extensions
[EntityFrameworkCore](https://github.com/dotnet/efcore) extensions

## Package Release Notes

Expand All @@ -26,7 +26,7 @@ https://github.com/WeihanLi/WeihanLi.EntityFramework/pulls?q=is%3Apr+is%3Aclosed
>
> For EF Core 5/6, use 2.x
>
> For EF 7, use 3.0.0 and above
> For EF 7, use 3.x
>
> For EF 8 and above, use 8.x or above major-version matched versions

Expand All @@ -51,14 +51,14 @@ https://github.com/WeihanLi/WeihanLi.EntityFramework/pulls?q=is%3Apr+is%3Aclosed

- AutoUpdate

- Soft delete for specific entity
- Soft delete for the specific entity
- Auto update CreatedAt/UpdatedAt/CreatedBy/UpdatedBy

- Extensions

- Update specific column(s) `Update`
- Update without specific column(s) `UpdateWithout`

## Contact
## Support

contact me <weihanli@outlook.com> if you need
Feel free to try and [create issues](https://github.com/WeihanLi/WeihanLi.EntityFramework/issues/new) if you have any questions or integration issues
8 changes: 4 additions & 4 deletions build/build.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var target = CommandLineParser.Val("target", "Default", args);
var apiKey = CommandLineParser.Val("apiKey", "", args);
var stable = CommandLineParser.BooleanVal("stable", args: args);
var noPush = CommandLineParser.BooleanVal("noPush", args: args);
var target = CommandLineParser.Val("target", args, "Default");
var apiKey = CommandLineParser.Val("apiKey", args);
var stable = CommandLineParser.BooleanVal("stable", args);
var noPush = CommandLineParser.BooleanVal("noPush", args);
var branchName = EnvHelper.Val("BUILD_SOURCEBRANCHNAME", "local");

var solutionPath = "./WeihanLi.EntityFramework.sln";
Expand Down
2 changes: 2 additions & 0 deletions docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Release Notes

More changes: https://github.com/WeihanLi/WeihanLi.EntityFramework/pulls?q=is%3Apr+is%3Aclosed

## WeihanLi.EntityFramework

### [WeihanLi.EntityFramework 1.8.0](https://www.nuget.org/packages/WeihanLi.EntityFramework/1.8.0)
Expand Down
10 changes: 5 additions & 5 deletions samples/WeihanLi.EntityFramework.Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private static void AutoAuditTest()
{
{
var services = new ServiceCollection();
services.AddLogging(builder => builder.AddSimpleConsole());
services.AddLogging(builder => builder.AddDefaultDelegateLogger());
services.AddDbContext<AutoAuditContext1>(options =>
{
options.UseSqlite("Data Source=AutoAuditTest1.db");
Expand Down Expand Up @@ -65,7 +65,7 @@ private static void AutoAuditTest()
ConsoleHelper.ReadLineWithPrompt();
{
var services = new ServiceCollection();
services.AddLogging(builder => builder.AddSimpleConsole());
services.AddLogging(builder => builder.AddDefaultDelegateLogger());
services.AddDbContext<AutoAuditContext2>((provider, options) =>
{
options.UseSqlite("Data Source=AutoAuditTest2.db");
Expand Down Expand Up @@ -104,7 +104,7 @@ private static void AutoAuditTest()
var services = new ServiceCollection();
services.AddLogging(loggingBuilder =>
{
loggingBuilder.AddConsole();
loggingBuilder.AddDefaultDelegateLogger();
});
services.AddDbContext<TestDbContext>((provider, options) =>
{
Expand Down Expand Up @@ -180,7 +180,7 @@ private static void RepositoryTest()
var services = new ServiceCollection();
services.AddLogging(loggingBuilder =>
{
loggingBuilder.AddConsole();
loggingBuilder.AddDefaultDelegateLogger();
});
services.AddDbContext<TestDbContext>((provider, options) =>
{
Expand Down Expand Up @@ -371,7 +371,7 @@ private static void SoftDeleteTest()
var services = new ServiceCollection();
services.AddLogging(loggingBuilder =>
{
loggingBuilder.AddConsole();
loggingBuilder.AddDefaultDelegateLogger();
});

services.AddSingleton<IUserIdProvider, EnvironmentUserIdProvider>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="$(EFVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(EFVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="$(EFVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
</ItemGroup>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="$(EFVersion)" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="$(EFVersion)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
</ItemGroup>

<ItemGroup>
Expand Down