ASP.NET Core和Sqlite使用DEMO

上传者: pp9105 | 上传时间: 2021-07-21 15:07:10 | 文件大小: 607KB | 文件类型: RAR
参考杨万青写的《ASP.NET Core与Restful API开发实战》,这本书写的不错,但是书中使用的是Sql Server,我一般不用这个数据库,为了学习方便,我的DEMO使用的是Sqlite3,这种数据库太好用了。另外DEMO里面也去掉了书中的automapper,还有根据代码生成数据表的部分(感觉自动生成老会出错),所以我是手动建表,手动创建entity。另外写了一个非常简单的web api调用例子。

文件下载

资源详情

[{"title":"( 48 个子文件 607KB ) ASP.NET Core和Sqlite使用DEMO","children":[{"title":"BoxCore","children":[{"title":"Program.cs <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"appsettings.Development.json <span style='color:#111;'> 146B </span>","children":null,"spread":false},{"title":"test.db <span style='color:#111;'> 12.00KB </span>","children":null,"spread":false},{"title":"test.html <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"Controllers","children":[{"title":"ValuesController.cs <span style='color:#111;'> 1018B </span>","children":null,"spread":false},{"title":"UsersController.cs <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"appsettings.json <span style='color:#111;'> 105B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"BoxCore.csproj.nuget.cache <span style='color:#111;'> 149B </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"netcoreapp2.1","children":[{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"BoxCore.AssemblyInfo.cs <span style='color:#111;'> 1004B </span>","children":null,"spread":false},{"title":"BoxCore.csproj.CoreCompileInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"BoxCore.RazorTargetAssemblyInfo.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"BoxCore.assets.cache <span style='color:#111;'> 119.43KB </span>","children":null,"spread":false},{"title":"BoxCore.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"BoxCore.dll <span style='color:#111;'> 21.00KB </span>","children":null,"spread":false},{"title":"BoxCore.RazorAssemblyInfo.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"BoxCore.pdb <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"BoxCore.AssemblyInfoInputs.cache <span style='color:#111;'> 42B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"BoxCore.csprojAssemblyReference.cache <span style='color:#111;'> 249.82KB </span>","children":null,"spread":false},{"title":"BoxCore.RazorAssemblyInfo.cs <span style='color:#111;'> 931B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"BoxCore.csproj.nuget.g.props <span style='color:#111;'> 4.43KB </span>","children":null,"spread":false},{"title":"BoxCore.csproj.nuget.g.targets <span style='color:#111;'> 2.75KB </span>","children":null,"spread":false},{"title":"project.assets.json <span style='color:#111;'> 571.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"netcoreapp2.1","children":[{"title":"BoxCore.runtimeconfig.dev.json <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"BoxCore.dll <span style='color:#111;'> 21.00KB </span>","children":null,"spread":false},{"title":"BoxCore.runtimeconfig.json <span style='color:#111;'> 224B </span>","children":null,"spread":false},{"title":"BoxCore.deps.json <span style='color:#111;'> 250.72KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"Services","children":[{"title":"moreInterface.cs <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"RepositoryBase.cs <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"IRepositoryBase2.cs <span style='color:#111;'> 281B </span>","children":null,"spread":false},{"title":"SqliteGxpContext.cs <span style='color:#111;'> 875B </span>","children":null,"spread":false},{"title":"IRepositoryBase.cs <span style='color:#111;'> 536B </span>","children":null,"spread":false},{"title":"RepositoryWrapper.cs <span style='color:#111;'> 641B </span>","children":null,"spread":false}],"spread":true},{"title":"BoxCore.csproj.user <span style='color:#111;'> 938B </span>","children":null,"spread":false},{"title":".vs","children":[{"title":"config","children":[{"title":"applicationhost.config <span style='color:#111;'> 78.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"BoxCore","children":[{"title":"v15","children":[{"title":".suo <span style='color:#111;'> 36.00KB </span>","children":null,"spread":false},{"title":"Server","children":[{"title":"sqlite3","children":[{"title":"storage.ide-wal <span style='color:#111;'> 1.32MB </span>","children":null,"spread":false},{"title":"storage.ide-shm <span style='color:#111;'> 32.00KB </span>","children":null,"spread":false},{"title":"storage.ide <span style='color:#111;'> 1.96MB </span>","children":null,"spread":false},{"title":"db.lock <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"DesignTimeBuild","children":[{"title":".dtbcache <span style='color:#111;'> 1.23MB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"BoxCore.csproj <span style='color:#111;'> 607B </span>","children":null,"spread":false},{"title":"Entities","children":[{"title":"USER_S.cs <span style='color:#111;'> 538B </span>","children":null,"spread":false}],"spread":true},{"title":"Startup.cs <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"launchSettings.json <span style='color:#111;'> 781B </span>","children":null,"spread":false}],"spread":false},{"title":"BoxCore.sln <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"wwwroot","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • ljsososo :
    挺好的感谢分享
    2021-09-22

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明