-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fe825fd
Showing
38 changed files
with
1,925 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Ignore the NuGet packages folder in the root of the repository | ||
packages | ||
bin | ||
obj | ||
TestResults | ||
|
||
#include package target files which may be required for msbuild | ||
!packages/*.targets | ||
*.user | ||
*.suo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<package > | ||
<metadata> | ||
<id>EntityFramework.Auditing</id> | ||
<version>2.0.0</version> | ||
<authors>David Breyer</authors> | ||
<owners>David Breyer</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Entity Framework Auditing Context</description> | ||
<releaseNotes></releaseNotes> | ||
<copyright>Copyright 2016</copyright> | ||
<tags></tags> | ||
<dependencies> | ||
<dependency id="EntityFramework" version="6.1.3" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="EntityFramework.Auditing\bin\Release\EntityFramework.Auditing.dll" target="lib\net45" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.25123.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityFramework.Auditing", "EntityFramework.Auditing\EntityFramework.Auditing.csproj", "{4DFC3A52-4464-4D14-9C6F-A341EC7FD270}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BB1D3217-C0A9-419D-8C49-D2C00BDF934C}" | ||
ProjectSection(SolutionItems) = preProject | ||
AuditDBContext.nuspec = AuditDBContext.nuspec | ||
AuditDbContext.vsmdi = AuditDbContext.vsmdi | ||
Changelog.txt = Changelog.txt | ||
license.txt = license.txt | ||
Local.testsettings = Local.testsettings | ||
nuget.exe = nuget.exe | ||
Readme.md = Readme.md | ||
Settings.StyleCop = Settings.StyleCop | ||
TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings | ||
EndProjectSection | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityFramework.Auditing.Test", "EntityFramework.Auditing.Test\EntityFramework.Auditing.Test.csproj", "{8CBD72A8-BA9F-4106-AF9E-F722D0927D37}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{97B699FC-F1A8-483C-9FF5-6B2C0F1F076B}" | ||
ProjectSection(SolutionItems) = preProject | ||
.nuget\NuGet.Config = .nuget\NuGet.Config | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{4DFC3A52-4464-4D14-9C6F-A341EC7FD270}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{4DFC3A52-4464-4D14-9C6F-A341EC7FD270}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{4DFC3A52-4464-4D14-9C6F-A341EC7FD270}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{4DFC3A52-4464-4D14-9C6F-A341EC7FD270}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{8CBD72A8-BA9F-4106-AF9E-F722D0927D37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{8CBD72A8-BA9F-4106-AF9E-F722D0927D37}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{8CBD72A8-BA9F-4106-AF9E-F722D0927D37}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{8CBD72A8-BA9F-4106-AF9E-F722D0927D37}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(TeamFoundationVersionControl) = preSolution | ||
SccNumberOfProjects = 3 | ||
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} | ||
SccTeamFoundationServer = https://tfs.gaig.com/tfs/app%20support | ||
SccLocalPath0 = . | ||
SccProjectUniqueName1 = EntityFramework.Auditing.Test\\EntityFramework.Auditing.Test.csproj | ||
SccProjectName1 = EntityFramework.Auditing.Test | ||
SccLocalPath1 = EntityFramework.Auditing.Test | ||
SccProjectUniqueName2 = EntityFramework.Auditing\\EntityFramework.Auditing.csproj | ||
SccProjectName2 = EntityFramework.Auditing | ||
SccLocalPath2 = EntityFramework.Auditing | ||
EndGlobalSection | ||
GlobalSection(TestCaseManagementSettings) = postSolution | ||
CategoryFile = AuditDbContext.vsmdi | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> | ||
<TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6"> | ||
<RunConfiguration id="c2f1a453-6c85-4b52-8b9c-974d125d9360" name="Local" storage="local.testsettings" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
</TestList> | ||
</TestLists> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"" | ||
{ | ||
"FILE_VERSION" = "9237" | ||
"ENLISTMENT_CHOICE" = "NEVER" | ||
"PROJECT_FILE_RELATIVE_PATH" = "" | ||
"NUMBER_OF_EXCLUDED_FILES" = "0" | ||
"ORIGINAL_PROJECT_FILE_PATH" = "" | ||
"NUMBER_OF_NESTED_PROJECTS" = "0" | ||
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
1.0 Orignal Code From Codeplex.com | ||
|
||
2.0 | ||
Upgraded to .NET 4.5 | ||
Upgraded to Entity Framework 6.1.3 | ||
Changed Test to used Local SQL Server | ||
Added Column Source Id to the AuditSourceId to hold the id of the object being changed in the audit | ||
Updated AuditContext to work with Complex types. | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<configSections> | ||
<section name="entityFramework.Audit" type="EntityFramework.Auditing.AuditConfigurationSection, EntityFramework.Auditing" /> | ||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> | ||
|
||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections> | ||
<entityFramework.Audit> | ||
<entities> | ||
<add name="EntityFramework.Auditing.Test.Customer, EntityFramework.Auditing.Test" audit="EntityFramework.Auditing.Test.CustomerAudit, EntityFramework.Auditing.Test" /> | ||
</entities> | ||
</entityFramework.Audit> | ||
<entityFramework> | ||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> | ||
<providers> | ||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> | ||
</providers> | ||
</entityFramework> | ||
<connectionStrings> | ||
<add name="AuditDbTest" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\MSSQLLocalDB;Initial Catalog=AuditDbTest;Trusted_Connection=true;Integrated Security=True;Pooling=false;MultipleActiveResultSets=true" /> | ||
</connectionStrings> | ||
</configuration> |
Oops, something went wrong.