Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
netcoreplus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
netcoreplus
Commits
785830d8
Commit
785830d8
authored
May 19, 2019
by
阿星Plus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
✨
✨
🎉
🎉
🎉
parent
a12743e8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
12 deletions
+6
-12
PlusDbContext.cs
src/Plus.EntityFramework/PlusDbContext.cs
+5
-5
PlusEntityFrameworkModule.cs
src/Plus.EntityFramework/PlusEntityFrameworkModule.cs
+1
-2
IRedisCacheSerializer.cs
src/Plus.RedisCache/IRedisCacheSerializer.cs
+0
-1
Plus.csproj
src/Plus/Plus.csproj
+0
-4
No files found.
src/Plus.EntityFramework/PlusDbContext.cs
View file @
785830d8
...
...
@@ -123,7 +123,7 @@ namespace Plus.EntityFramework
{
try
{
var
changeReport
=
Apply
Abp
Concepts
();
var
changeReport
=
Apply
Plus
Concepts
();
var
result
=
base
.
SaveChanges
();
EntityChangeEventHelper
.
TriggerEvents
(
changeReport
);
return
result
;
...
...
@@ -138,7 +138,7 @@ namespace Plus.EntityFramework
{
try
{
var
changeReport
=
Apply
Abp
Concepts
();
var
changeReport
=
Apply
Plus
Concepts
();
var
result
=
await
base
.
SaveChangesAsync
(
cancellationToken
);
await
EntityChangeEventHelper
.
TriggerEventsAsync
(
changeReport
);
return
result
;
...
...
@@ -149,7 +149,7 @@ namespace Plus.EntityFramework
}
}
protected
virtual
EntityChangeReport
Apply
Abp
Concepts
()
protected
virtual
EntityChangeReport
Apply
Plus
Concepts
()
{
var
changeReport
=
new
EntityChangeReport
();
...
...
@@ -162,13 +162,13 @@ namespace Plus.EntityFramework
Entry
(
entry
.
Entity
).
State
=
EntityState
.
Modified
;
}
Apply
Abp
Concepts
(
entry
,
userId
,
changeReport
);
Apply
Plus
Concepts
(
entry
,
userId
,
changeReport
);
}
return
changeReport
;
}
protected
virtual
void
Apply
Abp
Concepts
(
EntityEntry
entry
,
long
?
userId
,
EntityChangeReport
changeReport
)
protected
virtual
void
Apply
Plus
Concepts
(
EntityEntry
entry
,
long
?
userId
,
EntityChangeReport
changeReport
)
{
switch
(
entry
.
State
)
{
...
...
src/Plus.EntityFramework/PlusEntityFrameworkModule.cs
View file @
785830d8
...
...
@@ -55,11 +55,10 @@ namespace Plus.EntityFramework
if
(
dbContextTypes
.
IsNullOrEmpty
())
{
Logger
.
Warn
(
"No class found derived from
Abp
DbContext."
);
Logger
.
Warn
(
"No class found derived from
Plus
DbContext."
);
return
;
}
foreach
(
var
dbContextType
in
dbContextTypes
)
{
Logger
.
Debug
(
"Registering DbContext: "
+
dbContextType
.
AssemblyQualifiedName
);
...
...
src/Plus.RedisCache/IRedisCacheSerializer.cs
View file @
785830d8
...
...
@@ -5,7 +5,6 @@ namespace Plus.RedisCache
{
/// <summary>
/// (De)Serialize
/// 来自Redis缓存的对象
/// </summary>
public
interface
IRedisCacheSerializer
{
...
...
src/Plus/Plus.csproj
View file @
785830d8
...
...
@@ -20,8 +20,4 @@
<ProjectReference Include="..\Plus.Extensions\Plus.Extensions.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Utils\" />
</ItemGroup>
</Project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment