Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
32ecac3
Updated to 5.0
DarkXoro Mar 9, 2021
fcf462b
Merge pull request #55 from DarkXoro/master
rigofunc Mar 10, 2021
6b7621a
Extended DbContextExtensions with "EnsureAddedHistory".
Mar 26, 2021
ba2a003
feat: add default value for EnableAutoHistory
FrediKats Mar 29, 2021
5d0710d
Improve Readme file.
mo-esmp May 26, 2021
fb6c030
Remove extra null checks
mo-esmp May 26, 2021
cc0c8d4
Merge pull request #56 from NormanGiHu/AddedHistory
rigofunc May 28, 2021
5f7b024
Merge pull request #57 from FrediKats/feat/add-default-value
rigofunc May 28, 2021
b0a57f8
Merge pull request #60 from mo-esmp/master
rigofunc May 28, 2021
b0c22e3
Add attribute to exclude properties from history changes using[Exclud…
Jul 5, 2021
a613848
Merge pull request #61 from isaacgimenez/feature/exclude-property-att…
rigofunc Jul 7, 2021
3185d71
update readme with exluded from history attribute
Jul 7, 2021
12a37cf
Merge pull request #62 from isaacgimenez/feature/exclude-documentation
rigofunc Jul 7, 2021
4630c33
deps: update deps to latest v5.0.7
Jul 7, 2021
4555b28
Extended README.md with "EnsureAddedHistory" documentation
Jul 9, 2021
1cf838a
README.md: corrected typo
Jul 9, 2021
d2bfbc5
add option for JsonSerializerOptions
Oct 14, 2021
68c1e5a
Merge pull request #64 from NormanGiHu/AddedHistory
rigofunc Oct 14, 2021
c9ee7f0
Merge pull request #67 from felixhoi/master
rigofunc Oct 14, 2021
3063cd1
fix JsonSerializerOptions not effective
Oct 28, 2021
245b698
fix Does not record on DELETE issue #63
Oct 28, 2021
7822ab2
Merge pull request #68 from felixhoi/master
rigofunc Oct 29, 2021
4eb6880
Add net6 support
marcelpotirnac Nov 27, 2021
bd7c2d8
Add deleted test
marcelpotirnac Nov 27, 2021
9f34673
Autohistory version to 6
marcelpotirnac Nov 27, 2021
a7f929d
Rename sample from 5 to nothing
marcelpotirnac Nov 27, 2021
b1a685e
useless empty space
marcelpotirnac Nov 27, 2021
2422477
Merge pull request #70 from marcelpotirnac/master
rigofunc Nov 28, 2021
365a7f8
Add support to exclude entire entity from AutoHistory
ThumNet Apr 1, 2022
5e46e8d
Refactor (extract into separate methods)
ThumNet Apr 1, 2022
0a8ba35
Merge pull request #74 from ThumNet/master
rigofunc Apr 2, 2022
05c792f
Fix AddedHistory returned null wrongly
ThumNet Apr 3, 2022
3caa871
Merge pull request #75 from ThumNet/master
rigofunc Apr 4, 2022
d9d062a
docs: comment out the NuGet.config
Dec 14, 2022
aa60f02
chore: update
Apr 4, 2023
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
19 changes: 9 additions & 10 deletions AutoHistory.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
# Visual Studio Version 16
VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{EEF95A1B-E224-4488-91ED-4CC4EC3CEEE3}"
EndProject
Expand All @@ -15,12 +15,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
NuGet.config = NuGet.config
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{DAEF4300-2306-4680-A609-86F2F9E4513A}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{1C12ACF7-CF58-460C-8EF3-2349D8E62AC1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AspNetCore2.2.MVC.EF.Blogs", "samples\AspNetCore2.2.MVC.EF.Blogs\AspNetCore2.2.MVC.EF.Blogs.csproj", "{AB1074C0-4529-44F0-B837-07E34AB9B321}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetCore5.0.MVC.EF.Blogs", "samples\AspNetCore5.0.MVC.EF.Blogs\AspNetCore5.0.MVC.EF.Blogs.csproj", "{01180CD5-4F4E-4C51-9478-00090C03FE73}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -36,18 +35,18 @@ Global
{2F6C239E-9F05-4654-936B-CFBB00412E4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2F6C239E-9F05-4654-936B-CFBB00412E4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2F6C239E-9F05-4654-936B-CFBB00412E4B}.Release|Any CPU.Build.0 = Release|Any CPU
{AB1074C0-4529-44F0-B837-07E34AB9B321}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AB1074C0-4529-44F0-B837-07E34AB9B321}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AB1074C0-4529-44F0-B837-07E34AB9B321}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AB1074C0-4529-44F0-B837-07E34AB9B321}.Release|Any CPU.Build.0 = Release|Any CPU
{01180CD5-4F4E-4C51-9478-00090C03FE73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{01180CD5-4F4E-4C51-9478-00090C03FE73}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01180CD5-4F4E-4C51-9478-00090C03FE73}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01180CD5-4F4E-4C51-9478-00090C03FE73}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{5927DE0F-FA62-4B71-8AAF-2B3DDC405E34} = {EEF95A1B-E224-4488-91ED-4CC4EC3CEEE3}
{2F6C239E-9F05-4654-936B-CFBB00412E4B} = {504C6707-0D9C-4FA7-861D-B1A97AF39E32}
{AB1074C0-4529-44F0-B837-07E34AB9B321} = {DAEF4300-2306-4680-A609-86F2F9E4513A}
{01180CD5-4F4E-4C51-9478-00090C03FE73} = {1C12ACF7-CF58-460C-8EF3-2349D8E62AC1}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {ED8B7FB1-308D-49C1-8124-E03D7D6E6D85}
Expand Down
20 changes: 10 additions & 10 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="automatic" value="False" />
</packageRestore>
<packageSources>
<add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" />
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
<!-- <?xml version="1.0" encoding="utf-8"?> -->
<!-- <configuration> -->
<!-- <packageRestore> -->
<!-- <add key="automatic" value="False" /> -->
<!-- </packageRestore> -->
<!-- <packageSources> -->
<!-- <add key="AspNetCore" value="https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json" /> -->
<!-- <add key="NuGet" value="https://api.nuget.org/v3/index.json" /> -->
<!-- </packageSources> -->
<!-- </configuration> -->
70 changes: 0 additions & 70 deletions README.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<TargetFramework>net6.0</TargetFramework>
<!--<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>-->
</PropertyGroup>

<PropertyGroup Condition=" '$(RunConfiguration)' == 'EFGetStarted.AspNetCore.NewDb' " />
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public IActionResult Create()
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Create([Bind("BlogId,Url")] Blog blog)
public async Task<IActionResult> Create([Bind("BlogId,Url,PrivateURL")] Blog blog)
{
if (ModelState.IsValid)
{
Expand Down Expand Up @@ -83,7 +83,7 @@ public async Task<IActionResult> Edit(int? id)
// more details see http://go.microsoft.com/fwlink/?LinkId=317598.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> Edit(int id, [Bind("BlogId,Url")] Blog blog)
public async Task<IActionResult> Edit(int id, [Bind("BlogId,Url,PrivateURL")] Blog blog)
{
if (id != blog.BlogId)
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using Microsoft.EntityFrameworkCore.Migrations;

namespace EFGetStarted.AspNetCore.NewDb.Migrations
{
public partial class blog_privateURLProperty : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "PrivateURL",
table: "Blogs",
type: "nvarchar(max)",
nullable: true);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PrivateURL",
table: "Blogs");
}
}
}
Loading