Commit 785830d8 authored by 阿星Plus's avatar 阿星Plus

🎉🎉🎉

parent a12743e8
...@@ -123,7 +123,7 @@ namespace Plus.EntityFramework ...@@ -123,7 +123,7 @@ namespace Plus.EntityFramework
{ {
try try
{ {
var changeReport = ApplyAbpConcepts(); var changeReport = ApplyPlusConcepts();
var result = base.SaveChanges(); var result = base.SaveChanges();
EntityChangeEventHelper.TriggerEvents(changeReport); EntityChangeEventHelper.TriggerEvents(changeReport);
return result; return result;
...@@ -138,7 +138,7 @@ namespace Plus.EntityFramework ...@@ -138,7 +138,7 @@ namespace Plus.EntityFramework
{ {
try try
{ {
var changeReport = ApplyAbpConcepts(); var changeReport = ApplyPlusConcepts();
var result = await base.SaveChangesAsync(cancellationToken); var result = await base.SaveChangesAsync(cancellationToken);
await EntityChangeEventHelper.TriggerEventsAsync(changeReport); await EntityChangeEventHelper.TriggerEventsAsync(changeReport);
return result; return result;
...@@ -149,7 +149,7 @@ namespace Plus.EntityFramework ...@@ -149,7 +149,7 @@ namespace Plus.EntityFramework
} }
} }
protected virtual EntityChangeReport ApplyAbpConcepts() protected virtual EntityChangeReport ApplyPlusConcepts()
{ {
var changeReport = new EntityChangeReport(); var changeReport = new EntityChangeReport();
...@@ -162,13 +162,13 @@ namespace Plus.EntityFramework ...@@ -162,13 +162,13 @@ namespace Plus.EntityFramework
Entry(entry.Entity).State = EntityState.Modified; Entry(entry.Entity).State = EntityState.Modified;
} }
ApplyAbpConcepts(entry, userId, changeReport); ApplyPlusConcepts(entry, userId, changeReport);
} }
return changeReport; return changeReport;
} }
protected virtual void ApplyAbpConcepts(EntityEntry entry, long? userId, EntityChangeReport changeReport) protected virtual void ApplyPlusConcepts(EntityEntry entry, long? userId, EntityChangeReport changeReport)
{ {
switch (entry.State) switch (entry.State)
{ {
......
...@@ -55,11 +55,10 @@ namespace Plus.EntityFramework ...@@ -55,11 +55,10 @@ namespace Plus.EntityFramework
if (dbContextTypes.IsNullOrEmpty()) if (dbContextTypes.IsNullOrEmpty())
{ {
Logger.Warn("No class found derived from AbpDbContext."); Logger.Warn("No class found derived from PlusDbContext.");
return; return;
} }
foreach (var dbContextType in dbContextTypes) foreach (var dbContextType in dbContextTypes)
{ {
Logger.Debug("Registering DbContext: " + dbContextType.AssemblyQualifiedName); Logger.Debug("Registering DbContext: " + dbContextType.AssemblyQualifiedName);
......
...@@ -5,7 +5,6 @@ namespace Plus.RedisCache ...@@ -5,7 +5,6 @@ namespace Plus.RedisCache
{ {
/// <summary> /// <summary>
/// (De)Serialize /// (De)Serialize
/// 来自Redis缓存的对象
/// </summary> /// </summary>
public interface IRedisCacheSerializer public interface IRedisCacheSerializer
{ {
......
...@@ -20,8 +20,4 @@ ...@@ -20,8 +20,4 @@
<ProjectReference Include="..\Plus.Extensions\Plus.Extensions.csproj" /> <ProjectReference Include="..\Plus.Extensions\Plus.Extensions.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Utils\" />
</ItemGroup>
</Project> </Project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment