1 Star 0 Fork 59

Martin718 / Zxw.Framework.NetCore

forked from Linvid / Zxw.Framework.NetCore 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
旺仔 提交于 2018-03-30 08:46 . Update README.md

最新功能请参考dev分支

Zxw.Framework.NetCore

基于EF Core的Code First模式的DotNetCore快速开发框架

开发环境

  • VS2017 / VS Code
  • .net core 2.0

支持的数据库

  • SQL Server
  • MySQL
  • Sqlite
  • InMemory
  • PostgreSQL

日志组件

  • log4net

DI组件

  • Autofac

缓存组件使用

本项目采用的AOP中间件 :AspectCore-Framework

  • MemoryCacheAttribute :基于MemoryCache的缓存拦截组件
  • RedisCacheAttribute :基于Redis的缓存拦截组件

如何使用:

public interface ITutorClassTypeRepository:IRepository<TutorClassType, Int32>
{
    [MemoryCache]//使用MemoryCache,缓存有效时间默认10分钟
    IList<TutorClassType> GetByMemoryCached(Expression<Func<TutorClassType, bool>> where = null);

    [RedisCache(Expiration = 5)]//使用Redis,缓存有效时间为5分钟
    IList<TutorClassType> GetByRedisCached(Expression<Func<TutorClassType, bool>> where = null);
}

.net framework版本地址

项目说明

C#
1
https://gitee.com/martin718/Zxw.Framework.NetCore.git
git@gitee.com:martin718/Zxw.Framework.NetCore.git
martin718
Zxw.Framework.NetCore
Zxw.Framework.NetCore
master

搜索帮助