1 Star 1 Fork 0

SesameTechGroup / PetaPoco.Compiled.Extensions

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
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

Comments ( 0 )

Sign in for post a comment

Releases

No release

Contributors

All

Activities

load more
can not load any more
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

Search

102255 3a0e046c 1850385 102255 7aaa926c 1850385