1 Star 1 Fork 0

SesameTechGroup / PetaPoco.Compiled.Extensions

加入 Gitee
与超过 1000 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README.md

PetaPoco.Compiled.Extensions

.net core 2.2 asp.net mvc 中使用PetePoco

定义一个继承PetaPocoDBContext的类MyPetaPocoDbContext,然后在Startup类的ConfigureServices方法中添加如下代码:

 services.AddPetaPoco<MyPetaPocoDbContext>(
     options =>
         {
             var connectionStrnig = Configuration["ConnectionStrings:mysql:WireCloudNetCoreMvcMySQL"];
             var providerName = Configuration["ConnectionStrings:mysql:providerName"];
             options.ConnectionString = connectionStrnig;
             options.ProviderName = providerName;
         });

在nuget中发布了0.0.1版本 使用命令 >> Install-Package PetaPoco.Compiled.Extensions -Version 0.0.1

BLOG:https://blog.csdn.net/weixin_42930928/article/details/89384044

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/sesametechgroup/PetaPoco.Compiled.Extensions.git
git@gitee.com:sesametechgroup/PetaPoco.Compiled.Extensions.git
sesametechgroup
PetaPoco.Compiled.Extensions
PetaPoco.Compiled.Extensions
master

搜索帮助

10d9f8b4 4838521 8bde8327 4838521