Skip to content

Commit

Permalink
360:AutoCache:处理MAction的Fill方法的时的缓存引用(改成克隆,避免多次Fill指向同一缓存)(2016-09-02)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyq1162 committed Sep 2, 2016
1 parent f45abb7 commit e7f524a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cache/AutoCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ internal static void SetCache(AopEnum action, AopInfo aopInfo)//End
_MemCache.Set(key, aopInfo.ExeResult, cacheTime);
break;
case AopEnum.Fill:
_MemCache.Set(key, aopInfo.Row, cacheTime);
_MemCache.Set(key, aopInfo.Row.Clone(), cacheTime);
break;
case AopEnum.GetCount:
_MemCache.Set(key, aopInfo.RowCount, cacheTime);
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
//
// 可以指定所有这些值,也可以使用“修订号”和“内部版本号”的默认值,
// 方法是按如下所示使用“*”:
[assembly: AssemblyVersion("5.6.5.0")]
[assembly: AssemblyFileVersion("5.6.5.0")]
[assembly: AssemblyVersion("5.6.5.1")]
[assembly: AssemblyFileVersion("5.6.5.1")]
3 changes: 2 additions & 1 deletion 更新记录.txt
Original file line number Diff line number Diff line change
Expand Up @@ -572,4 +572,5 @@
356��DBTool.GetColumns��������"\r\nwhere"����ʱ�����Ĵ���2016-09-02)
357���ı����ݿ⣨NoSqlCommand������select a as b ������֧�֣�2016-09-02)
358��MAction�������Fillʱδ������ֵ�����⣨2016-09-02)
359��ORM��OrmBase��SimpleOrmBase������SetAopState������2016-09-02)
359��ORM��OrmBase��SimpleOrmBase������SetAopState������2016-09-02)
360��AutoCache������MAction��Fill������ʱ�Ļ������ã��ijɿ�¡��������Fillָ��ͬһ���棩��2016-09-02)

0 comments on commit e7f524a

Please sign in to comment.