mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:03:27 +08:00
添加项目文件。
This commit is contained in:
30
CoreCms.Net.Core/Attribute/CachingAttribute.cs
Normal file
30
CoreCms.Net.Core/Attribute/CachingAttribute.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms.Net *
|
||||
* Web: https://CoreCms.Net *
|
||||
* ProjectName: 核心内容管理系统 *
|
||||
* Author: 大灰灰 *
|
||||
* Email: JianWeie@163.com *
|
||||
* CreateTime: 2020-05-08 23:54:42
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CoreCms.Net.Core.Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// 这个Attribute就是使用时候的验证,把它添加到要缓存数据的方法中,即可完成缓存的操作。
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method, Inherited = true)]
|
||||
public class CachingAttribute : System.Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// 缓存绝对过期时间(分钟)
|
||||
/// </summary>
|
||||
public int AbsoluteExpiration { get; set; } = 30;
|
||||
|
||||
}
|
||||
}
|
||||
26
CoreCms.Net.Core/Attribute/UseTranAttribute.cs
Normal file
26
CoreCms.Net.Core/Attribute/UseTranAttribute.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms.Net *
|
||||
* Web: https://CoreCms.Net *
|
||||
* ProjectName: 核心内容管理系统 *
|
||||
* Author: 大灰灰 *
|
||||
* Email: JianWeie@163.com *
|
||||
* CreateTime: 2020-05-08 23:55:07
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CoreCms.Net.Core.Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// 这个Attribute就是使用时候的验证,把它添加到需要执行事务的方法中,即可完成事务的操作。
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method, Inherited = true)]
|
||||
public class UseTranAttribute : System.Attribute
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user