Simple.Framework 0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet new install Simple.Framework::0.1.1
This package contains a .NET Template Package you can call from the shell/command line.

SimpleFramework


文档语言: [English] | [简体中文]

🎈 介绍

简化框架,封装了 EFcore 仓储,工作单元 框架结构分明

模板安装

安装 simple 模板

dotnet new --install Simple.Framework

创建 simple 模板

dotnet new simple --name MyProjectName

生成新模板包 (必须在 cmd 中执行)

nuget pack ./Simple.Framework.nuspec

🎞️ 项目结构

/src // 项目文件夹

/src/Simple.DbMigrations // 迁移文件管理项目

/src/Simple.EntityFrameworkCore // 当前领域的仓储实现和 Dbcontext

/src/Simple.Application.Contract // 契约

/src/Simple.Application // 业务层

/src/efcore // 框架的一些 EfCore 封装

/src/efcore/EfCoreEntityFrameworkCore // EfCore 基础封装

/src/efcore/EfCoreEntityFrameworkCore.DbMigrations // 项目所有 EfCore 迁移文件存放

/src/efcore/EfCoreEntityFrameworkCore.Mysql // 数据库 Mysql 模块实现

/src/efcore/EfCoreEntityFrameworkCore.SqlServer // SqlServer 数据库模块实现

/src/efcore/EfCoreEntityFrameworkCore.Sqlite // Sqlite 数据库模块实现

/src/auth // 授权服务 (单独部署)

🍬 基本功能

  1. 实现基本软删功能
  2. 实现创建人删除人更新人赋值
  3. 实现租户功能(未测试)
  4. 实现基本的授权服务
  5. 实现基本用户功能

🏴‍☠️ 构建项目

构建打包 Simple 项目的 Docker 镜像

docker build -f ./src/Simple.HttpApi.Host/Dockerfile -t simple .

构建打包 Simple-Auth 项目的 Docker 镜像

docker build -f ./src/auth/Simple.Auth.HttpApi.Host/Dockerfile -t auth .

🛞 使用说明

首先需要修改 Simple.HttpApi.Host,Simple.DbMigrations,Simple.Auth.HttpApi.Host 的项目下的 appsettings.json 的 mysql 数据库连接字符串

在 Simple.DbMigrations 生成迁移文件然后更新迁移文件

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.5 340 12/2/2022
0.2.4 401 11/12/2022
0.2.3 381 11/3/2022
0.2.2 388 11/1/2022
0.2.1 385 11/1/2022
0.2.0 357 11/1/2022
0.1.9 358 11/1/2022
0.1.8 333 11/1/2022
0.1.7 335 11/1/2022
0.1.6 336 11/1/2022
0.1.5 367 10/28/2022
0.1.4 375 10/28/2022
0.1.3 400 10/25/2022
0.1.2 376 10/24/2022
0.1.1 443 10/24/2022
0.1.0 424 10/22/2022