Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weidongnian/abp-vnext-sqlite
macbook下,基于sqlite的abp vnext的dotnet core 3.1 程序,不用安装数据库,就可以运行
https://github.com/weidongnian/abp-vnext-sqlite
Last synced: 3 months ago
JSON representation
macbook下,基于sqlite的abp vnext的dotnet core 3.1 程序,不用安装数据库,就可以运行
- Host: GitHub
- URL: https://github.com/weidongnian/abp-vnext-sqlite
- Owner: weidongnian
- Created: 2020-04-14T09:50:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T22:38:41.000Z (about 2 years ago)
- Last Synced: 2023-03-06T23:23:21.676Z (almost 2 years ago)
- Language: C#
- Size: 2.84 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
- awesome-abp - abp-vnext-sqlite - - 基于sqlite的abp vnext的dotnet core 3.1 程序,不用安装数据库,就可以运行 (Sample Projects / Community)
README
基于sqlite的abp vnext的dotnet core 3.1 程序,不用安装数据库,就可以运行
macbook 下
1,进入DbMigrations项目目录里,迁移数据,数据名叫abp.db
cd src/Acme.BookStore.EntityFrameworkCore.DbMigrations/
dotnet ef database update
2,进入Acme.BookStore.DbMigrator目录初始化数据
cd src/Acme.BookStore.DbMigrator/
dotnet run
3,进入web目录,运行,访问,登录 admin/1q2w3E*
cd src/Acme.BookStore.Web
dotnet run
open 'https://localhost:44387/'
4,期间可以生成报错,请在项目外,dotnet restore 和dotnet build,文章https报错等,请信任证书
dotnet dev-certs --trust
5,自动化工具 EasyApp.AbpHelper
dotnet tool install EasyAbp.AbpHelper -g
dotnet tool update EasyAbp.AbpHelper -g
create Model
abphelper generate crud News -d Acme.BookStore --separate-dto --custom-repository --skip-db-migrations
操作步骤如下
1,Add Model To DbContext --2
2,Configure Entity 为实体创建构造方法
3,Create a Custom Repository 创建仓储
public interface INewsRepository : IRepository
{
}options.AddRepository();
4,Create Dto
5,Create CRUD Application Service
6,Add Dtos To Automapper Profile
7,Add to Localization Resource
8,Generate UI Pages
Generate Page
Add to MenuContributor
Add Dtos to Automapper Profile
9,Create Test