-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support custom repository & TransactionScope
1. Support get custom repository from UnitOfWork 2. Using TransactionScope to support distributed transaction; close #19 #74 #78
- Loading branch information
yingtingxu
committed
Sep 7, 2018
1 parent
594a381
commit 07b8dc8
Showing
13 changed files
with
115 additions
and
81 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
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
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
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,12 @@ | ||
using Microsoft.EntityFrameworkCore; | ||
|
||
namespace Host.Models | ||
{ | ||
public class CustomBlogRepository : Repository<Blog>, IRepository<Blog> | ||
{ | ||
public CustomBlogRepository(BloggingContext dbContext) : base(dbContext) | ||
{ | ||
|
||
} | ||
} | ||
} |
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
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<Description>A plugin for Microsoft.EntityFrameworkCore to support repository, unit of work patterns, and multiple database with distributed transaction supported.</Description> | ||
<VersionPrefix>2.0.3</VersionPrefix> | ||
<VersionPrefix>2.1.0</VersionPrefix> | ||
<Authors>rigofunc;[email protected];</Authors> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<NoWarn>$(NoWarn);CS1591</NoWarn> | ||
|
@@ -16,7 +16,7 @@ | |
<RepositoryUrl>https://github.com/arch/UnitOfWork.git</RepositoryUrl> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.AutoHistory" Version="2.0.3" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.0.1" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.AutoHistory" Version="2.1.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="2.1.2" /> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.