超碰香蕉在线,国产精品网在线观看,精品1区2区,免费日韩av网站,妞干网中文字幕,五月婷婷久,久久综合视频网

首頁 服務(wù) 產(chǎn)品 文檔 關(guān)于

netcore freesql 使用FreeSql.Generator自動(dòng)生成實(shí)體類

visual studio 工具命令行輸入

第一步:dotnet-tool安裝 FreeSql.Generator
dotnet tool install -g FreeSql.Generator


第二步:FreeSql.Generator說明
FreeSql.Generator --help


第三步:生成實(shí)體

FreeSql.Generator -Razor 1 -NameOptions 0,0,0,1 -NameSpace CloudServiceApi.Entity -DB "MySql,Server=127.0.0.1;Database=dbname; User ID=root;Password=****;port=3306;CharSet=utf8;pooling=true;"

此時(shí)即可在項(xiàng)目根目錄下生成數(shù)據(jù)庫所有表的實(shí)體類。