<address id="xpjh9"><listing id="xpjh9"><meter id="xpjh9"></meter></listing></address>

<address id="xpjh9"><address id="xpjh9"><listing id="xpjh9"></listing></address></address>
<noframes id="xpjh9">
<noframes id="xpjh9">

<address id="xpjh9"><address id="xpjh9"><listing id="xpjh9"></listing></address></address>
    <form id="xpjh9"></form><address id="xpjh9"><listing id="xpjh9"><menuitem id="xpjh9"></menuitem></listing></address>

      <noframes id="xpjh9">
      VB.net 2010 視頻教程 VB.net 2010 視頻教程 VB.net 2010 視頻教程
      SQL Server 2008 視頻教程 c#入門經典教程 Visual Basic從門到精通視頻教程
      當前位置:
      首頁 > 編程開發 > .net教程 >
      • ASP.net教程之ABP——切換MySQL數據庫

      • 2019-06-12 13:08 來源:未知

      我是一名.net新手,應公司要求開始學習.net,使用的是土耳其大牛寫的框架ASP.NET Boilerplate 簡稱ABP,是基于DDD的現代ASP.NET開發框架,ABP提供了一個啟動模板用于新建的項目。經過多方閱讀,自己進行實踐,并進行總結。需要把這個模板搭建起來,微軟下載的原始模板使用的數據庫是SqlServer,由于個人原因需要將其進行修改。本人所使用的是win7系統,數據庫是Mysql,軟件使用的是vs2017。
      進入正題先進入微軟的官網:https://aspnetboilerplate.com/Templates

      按照步驟進行操作,點擊create my project

      進行等待下載,下載完成后,將壓縮包解壓到一個文件夾下面,打開文件夾找到aspnet-core, 找到以*.sln結尾的文件打開

      1.打開以后點擊解決方案,先還原NuGet包

      如下圖顯示

      2.安裝MySql.Data.Entity
      在vs2017中右擊解決方案 =》找到管理解決方案NuGet程序包

      打開后的頁面 并輸入MySql.Data.Entity ,我下載的是最新版的,當最新版的沒有遷移成功時,卸載當前最新版本,下載低版本的,并測試

      當然也可以使用命令進行安裝數據庫插件點擊工具=》NuGet包管理器=》程序包管理器控制臺
      在控制臺中程序包源選擇 全部 默認程序選擇 *.EntityFrameworkCore
      依次輸入
      install-package pomelo.entityframeworkcore.mysql.design

      install-package pomelo.entityframeworkcore.mysql

      3.更改配置文件

      在解決方案entityframeworkcore層找到DbContextConfigurer文件,修改里面的內容

      4.卸載sql server的NuGet包
      在程序包管理器控制臺使用代碼進行卸載

      uninstall-package microsoft.entityframeworkcore.sqlserver
      5.重新修改數據庫連接字符串
      找到appsettings.json文件重新修改數據庫連接字符串進行修改
      "Default": "Server=localhost;Port=3306;Database=數據庫名字;Uid=root;Pwd=數據庫密碼;"
      6.下載并安裝Mysql
      輸入連接 https://dev.mysql.com/downloads/mysql/5.5.html#downloads 下載并安裝mysql 
      7.重新添加數據遷移
      找到*.EntityFrameworkCore層的Migrations文件夾,刪除文件夾里面的所有文件,不要刪除文件夾。刪除完文件之后,重新生成解決方案。接著在程序包管理器控制臺 默認程序選擇 *.EntityFrameworkCore 敲入命令Add-Migration NewInit 當出現 To undo this action, use Remove-Migration. 時為執行成功。

      再次執行 update-database 出現Applying migration '20190513024725_NewInit'. 數據庫遷移成功。在Mysql數據庫中就可以看到所有的表。
      注:
      有的小伙伴可能執行會出錯(當然這是我安裝過程中遇到的問題 ), 可能會有以下幾個問題
      1.PowerShell version 2.0 is not supported. Please upgrade PowerShell to 3.0 or greater and restart Visual Studio.
      對于這個問題是由于win7系統版本較低,需要更新 。在微軟官網即https://www.microsoft.com/zh-CN/download/details.aspx?id=40855 這個地址,下載安裝 Windows6.1-KB2819745-x64-MultiPkg.msu 即可。當然若是新系統或win10應該不會出現這樣的問題
      2.Your startup project 'YTMyprocte.Web.Host' doesn't reference Microsoft.EntityFrameworkCore.Design.
      這個問題是由于缺Microsoft.EntityFrameworkCore.Design.包,將這個包裝上之后就ok了。

      作為新人,第一次寫博客,請多提意見,謝謝

      相關教程
      江苏快3 www.466060.com | www.98528g.com | 2355o.com | www.cp2838.com | www.7830o.com | bet2080.com | www.ck555.com | mg4151.vip | www.68568f.com | 50002.com | www.500763.com | www.ok633.com | a5595.net | www.33303.com | 71017g.com | www.756693.com | www.blrggb01.com | 2359911.com | www.4809n.com | 3089p.com | www.303473.com | www.mk856.com | 67890vvv.com | www.126ll.com | www.as0003.com | 2466.com | www.139975.com | www.1116xj.com | 9949p.com | www.10999t.com | 68228r.com | www.303717.com | www.601066.com | 36400066.com | www.855876.com | www.23336.com | 0907hb.com | www.00840l.com | www.25288m.com | sj889.net | www.00840e.com | www.vns1n1.com | ule607.com | www.221222.cc | www.88807t.com | 15856x.com | www.50051y.com | www.330099i.com | hg168f.com | www.53900d.com | www.wnsr999.com | 3178f.com | www.60108n.com | www.pj5904.com | 287733.com | www.c132.vip | www.t456x.com | 8569811r.com | 1479a.com | www.780780g.com | www.tbb002.com | zz5144.com | www.1666c.com | www.799msc.com | 29918v.com | www.2109m.com | www.563012.com | 2490g.com | www.357173.com | www.4136v.com | feicai0852.com | 89wns88.com | www.162323.com | www.0747700.com | 56560524.com | www.505504.com | www.930210.com | 9420s.com | 7335t.com | www.50051s.com | www.js629.com | 83138d.com | l2894.com | www.0194002.com | www.pj5504.com | vns00ff.com | www.026079.com | www.56011z.com | www.36536570.com | 889345.com | www.43818b.com | www.990707.com | 85698u.com | 5003ss.com | www.76520c.com | www.776775.com | 9149z.com | 4379.com | www.tz1555.com | 2146a.com | www.wns11.me | www.2846y.com | 8538n.com | www.026079.com | www.8998883.com | www.43788.com | 22kk8331.com | 1669u.com | www.c1456.com | www.xpj16682.com | www.g0041.com | 7726018.com | fff5682.com | www.68689k.com | www.27363z.com | www.yun900.com | 2649ss.com | www.558403.com | www.56011i.com | www.2546m.com | 33ff940.com | 9737mm.me | www.810837.com | www.yzqhyz.com | www.hg8445.com | 8036p.com | 38820055.com | www.345597.com | www.j77929.com | www.1343a.com | www.yinhecc44.com | l67890.com | 19990.com | www.919588.com | www.9187m.com | www.5suncity.com | 4052b.com | 3726n.com | 6137h.com | www.901572.com | www.3399186.com | www.799666v.com | www.85770y.com | 2214zz.com | mxc11.com | www.314213.com | www.582010.com | www.5099xx.com | www.a7892904.com | 7003822.com | 0207016.com | 55818v.com | www.c3956.com | www.42456699.com | www.xpj5959.com | www.550515.com | 5077777.com | 53262ww.com | 4546vip8.com | www.506923.com | www.8694v.com | 86811l.com | 2649ee.com | 9449.com | www.278203.com | www.2934r.com | www.7249j.com | 2381tt.com | 83086g.com | 50000988.com | www.106576.com | www.w603.com | www.50064l.com | www.5599msc.com | www.804171.com | www.135suncity.com | www.hg6906.com | www.215880.com | www.91233w.com | www.0012.com | www.b35ee.com | www.770222.com | www.99msc.la | www.1333zx.com | zhcp66.com | 75959s.com | 1458i.com | 6266123.net | 5509i.com | 16690088.com | www.215880.com | www.609717.com | www.9818w.cc | www.65707m.com | www.hr1822.com | www.4996cz.com | www.hf3138.com | www.900688.com | www.pj7991.com | www.36530088.com | www.hg990077.com | 5855qq.com | 3434c.com | wnsr8802.com | 8977mm.com | 33382uu.com | r67890.com | 88883501.com | 9646y.com | www5682.com | 99698q.com | 58885365.com | 5804k.com | 2595m.com | hg168f.com | 8040.am | 1705y.com | 2595y.com | 31325n.com | www.50026u.com | www.196072.com | www.312876.com | www.355811.com | www.444029.com | www.320992.com | www.237988.com | www.315332.com | www.183209.com | www.128083.com | 32424q.com | pt777.com | 444vn77.com | beplay.pub | xpj25.com | 7893w41.com | 876878p.com | 5295g.com | 0234i.com | 32555p.com | 99567x.com | 61329977.com | 22335156.com | www.zzzz0261.com | www.gef999.com | www.tyc95.com | www.7770011.com | www.5966hhh.com | www.255817.com | www.yh67.net | www.918.com | www.96386n.com | www.51558.com | www.ybao3.com | www.785803.com | www.181599.com | 6766rr.com | 13976.com | wotuwen.com | 4255j.com | 50067t.com | w0595.com | www.lb0022.com | www.377088.com | www.488633.com | www.xycp98.net | www.07679j.com | www.60798.com | www.2222y.cc | www.178153.com | p47479.com | 38989t.com | 9539p.com | 334611.com | www.as0099.com | www.678130.com | www.5146z2.com | www.3398744.com | www.35918p.com | www.818827.com | 2127ii.com | 15a22.net | 40033hhh.com | www.aicaidd.com | www.wns8833.com | www.kj639.com | www.06387755.com | www.7777y.cc | www.178319.com | 5369i.com | x4255.com | 2418m.com | www.58777i.com | www.2y931.com | www.320279.com | www.87668g.com | www.587502.com | ys777.co | 77606w.com | 9420k.com | www.vns9.cc | www.55060j.com | www.376500hd.com | www.599476.com | 3202d.com | 8344aa.com | 90307y.com | www.tyc658.com | www.c5127.com | www.775780.com | 0088wd.com | 30688x.com | 2007811.com | www.65581.com | www.30350m.com | www.8667j.com | pj800.cc | www.bali666.com | le888k.com | www.888vip7.com | www.47506p.com | www.5854b.cc | jj1331.com | 4018hh.com | www.379568.com | www.9999d.com | www.987788.com | www.6668a.vip | www.57578f.com | www.80065i.com | 3678bbb.com | nn4675.com | www.109015.com | www.bet353654.com | www.160913.com | 1397.com | www.365168.cc | www.9b005.com | www.12018.cc | 3435t.com | v2554.com | www.pj663388.com | www.7240c.com | www.djcp001.com | 3467d.com | h4455g.com | www.b8444.com | www.52303w.com | 5446jj.com | 62222p.com | www.736suncity.com | www.033654.com | www.60108i.com | 4036rr.com | www.15011i.com | www.55676a.com | www.219055.com | 0446b.com | www.v3305.com | www.2021s.com | www.760170.com | 8569811g.com | www.3xinhao.com | www.932418.com | www.657259.com | 20t88.com | www.m4737.com | www.4444msc.com | www.326265.com | 3846e.com | www.kk7788.com | www.77802w.com | 59599b.com | 99932949.com | www.33678uu.com | www.346411.com | 3662b.com | www.40789b.com | www.73031.cc | caipiao99.com | www.hgw0088.me | www.8082.am | 9964h.com | yd12305.com | www.8313c.com | www.661526.com | 39199o.com | www.kj8018.com | www.2632m.com | 2381ppp.com | www.30772.com | www.21365bet.com | 3678k.com | www.yinhe9507e.com | www.1117.com | js06.app | www.hg4030.com | www.hb598.cc | 6944009.com | www.p76888.com | www.hd8674.com | 1077zz.com | www.44yh765.com | www.35898d.com | 15856p.com | www.bet365602.com | www.5953188.com | 18438p.com | www.h7788v.com | www.17848.net | h21148.com | www.828685.com | www.07813.com | 4270uu.com | www.339788.com | www.745568.com | mm00558.com | www.330732.com | 07.tt | www.9737kk.me | www.50051v.com | 1669jt.com | www.777999qipai.com | 3mgmrrr.com | www.655msc.com | www.89959.cc | 3416r.com | www.335217.com | www.178762.com | 38989y.com | www.7886261.com | kk3384.com | www.771671c.com | www.775979.com | 5360t.com | www.4996sp.com | 99111nn.com | www.4625s.com | www.11018.cc | hg0555e.com | www.ag0456.com | 11989f.com | www.1zbvip.com | www.984688.com | 50067i.com | www.8577b.cc | 9500988.com | www.8222000.com | www.128082.com | www.1133hg.com | www.26163n.com | 5647v.com | www.45598f.com | 50067j.com | www.492049.com | www.324229.com | www.9544j.com | www.25688c.com | qq365n.com | www.804sun.com | 06386969.com | www.8313k.com | 113365.com | www.cp48.com | www.99djcp.com | www.3xinhao.com | www.sxyl6.com | pp5443.com | www.20899.com | 67890j.com | www.44118q.com | hay9256.com | www.8864tt.com | 32212.com | www.01416.com | x48x.com | www.hg0782.com | www.196052.com | www.i27229.com | www.669771.com | www.pu1177.com | www.ascp0.com | 3544i.com | www.3478n.cc | 2649zz.com | www.08588w.com | 3103.com | www.7793t.com | 20611.com | www.8039y.com | 3844p.com | www.50233.cc | 62620029.com | www.255ak.com | jlshckj.com | www.2109u.com | 996622yy.com | www.en06.com | www.ao599.com | www.798288.com | www.719365.com | www.533508.com | www.pj888055.com | www.60007a.com | www.16711.com | xianjinwanggg.com | www.20201.com | 168cp-c.com | www.wz2255.com | biying930vip.com | www.9bet005.com | 5478444.com | www.8905j.com | 6487.com | www.16878e.com | mry345.com | www.022yn.cc | www.63877d.com | www.335037.com | www.blr795.com | s2894.com | www.172270.com | hg2088.com | www.69488.com | 82299.com | www.3478m.cc | www.76060v.com | www.z456x.com | www.355284.com | www.hr3888.com | www.hg8728.net | 00048n.com | www.998855i.com | 3559zzz.com | www.9988kcd.com | hubet555.com | www.cb3288.com | www.649589.com | 62033.com | www.9737gg.com | www.55717u.com | 8722wwww.com | www.07679k.com | 2007570.com | www.zcwf2.com | www.hgbet7.com | js7704.com | www.1559502.com | pjhenan.com | www.44ckb.com | www.msc605.com | 3024h.com | www.9908598.com | 86811h.com | www.009mgm.com | 37775145.com | www.80065j.com | www.8124q.com | 9421.com | www.4996gx.com | js004.com | www.725898.com | www.55288a.com | pj600600.com | www.75538b.com | www.39695h.com | 20833g.com | www.9187g.com | 99306b.com | www.50054i.com | www.4136i.com | 6261u.com | www.602927.com | www.1488msc.com | xpj212.com | www.8816y.com | www.4848p.com | 708365.com | www.61655d.com | www.77537z.com | 0098.com | www.dyslot.com | www.07078006.com | 01885.com | www.8582bb.com | www.862365.com | 55984q.com | www.0194008.com | www.39695g.com | 6403l.com | www.66653t.com | www.75367.com | 8381nn.com | www.1368a.cc | www.365.pw | 78115577.com | www.390706.com | www.71071f.com | 76543y.com | 80878r.com | www.38775hh.com | www.vns0100.com | 3788dd.com | www.0194007.com | www.09569c.com | 59889k.com | www.hy5508.com | www.998855s.com | 666cp.net | 243d11.com | www.98488.com | www.g83138.com | 38850066.com | www.c2656.com | www.91500999.com | 3245m.com | 4631122.com | www.aobo192.com | www.696111.com | 992222v.com | www.444165.com | www.47506l.com | www.ag6771.com | ws365.cn | www.951816.com | www.65066zz.com | 316690.com | pjbuyuw.com | www.371h.cc | www.808888q.com | 33115tt.com | 32355pp.com | www.08299.com | www.yh99866.com | 11989u.com | 18438cj.com | www.8816g.com | www.138cpb.com | 56988n.vip | 3544v.com | www.073wy.com | www.811202.com | www.81866u.com | 4152x.com | www.799481.com | www.1754v.com | www.7830w.com | xhtd12345.com | www.76520u.com | www.6678578.com | www.jj905.net | 0025i.com | r15666.com | www.c6348.com | www.377666n.com | www.r8867.com | h1915.com | 3222z.cc | www.2632z.com | www.848777m.com | www.7620679.com | 8037ppp.com | 281001.com | www.86267f.com | www.cp67776.com | www.hgw2088.net | 3033d.com | 4441164.com | www.65707t.com | www.4963q.com | www.hg94444.com | vns7711.com | 38820000.com | www.979500.com | www.7036bb.com | www.166347.com | 7792w.com | 37111j.com | 8522bbbb.com | www.3552z.com | www.704905.com | www.83008d.com | y980.com | 74397777.com | 55ff940.com | www.fcff6.com | www.xpj8869.com | www.ld003.com | www.hg1455.com | 00009193.com | 7172244.com | www.396477.com | www.81233hh.com | www.8473i.com | www.40033.1640033.com | 3121yy.com | 1669s.com | 77424466.com | www.914901.com | www.37377d.com | www.klcp3jc.com | www.2078r.com | 2267v.com | 5566hhgz.com | 80031122.com | www.230320.com | www.8667f.com | www.9464gg.com | www.pj299299.com | www.3459n.com | 0747y.com | bwin62.com | 3550c.com | www.99638i.com | www.gocp2.com | www.6678576.com | www.bet91487.com | www.25288d.com | www.85770w.com | 2776s.com | 86611s.com | js02.app | kkk5682.com | www.558424.com | www.76636.com | www.qiji111.com | www.5099yy.com | www.ty1133.net | www.333133v.com | 54141188.com | JS1388n.com | 0802.com | k9539.com | 3045533.com | www.431776.com | www.9478s.com | www.ejylc10.com | www.06820a.com | www.85857d.com | www.hg8487.com | www.8694i.com | 1389a.com | 8290c.com | 78808t.com | hk6686.cc | 1211.cc | pj88cc.com | bogou800.vip | www.318021.com | www.860836.com | www.6364k.com | www.7714.net | www.916177.com | www.9464.com | www.1429e8.com | www.99113n.com | www.3535h.com | www.hg7938.com | www.8522cn.com | www.gd68.com | www.888vip5.com | alifa978.com | 2267y.com | 214kf.com | yf2444.com | 444v44.com | 3404b.cc | 32555z.com | 81366t.com | d2306.com | bojue02.com | 5608.com | wlb111.com | 4066u.com | 03508.com | 38345t.com | 66339193.com | 6197js.com | 22296ee.com | 5802oo.com | 99ff940.com | 3685e.com | 243d9.com | wb8.com | 8036nn.com | pj38839.com | 22ll8331.com | js89t.vip | 450371.com | bet36333.com | 5509.com | www444000.com | yl66yl00.com | 4880e.com | 1919394.com | 0207206.com | 04666r.com | 47749z.com | 702246.com | feicai0317.com | 95244.com | pjanhui.com | www.86611x.com | www.888167.com | www.boma0151.com | www.88807g.com | www.777cm1.com | www.xpj654.com | www.814c.com | www.07179.com | www.27363j.com | www.4078t.com | www.078121.top | www.52062h.com | www.hg78777.com | www.73736d.com | www.2188cai.com | www.973709.com | www.550241.com | www.39500o.com | 76668.com | 5144.net | b4255.com | b08199.com | 2709v.com | www.8807js.com | www.4972zz.com | www.hg4438.com | www.lfcp567.com | www.cn365s.com | www.773530.com | www.83033y.com | www.hy5506.com | www.335240.com | 3844qq.com | 998s.cc | 00755b.com | 28288p.com | www.3435b.com | www.88837k.com | www.178179.com | www.9737cc.com | www.11599.com | www.50052k.com | www.905844.com | www.83993o.com | 70www.net | 3844ee.com | 9101906.com | 4116j.com | www.hgbet22.com | www.491888.com | www.369410.com | www.879528.com | www.980771.com | www.52303i.com | 8159c.cc | 3568ii.com | 915620.com | www.msc44.la | www.cp66611.com | www.166490.com | www.9928i.com | www.369071.com | pj88oo.com | 4022gg.com | 2355k.com | www.hai0000.com | www.1168p.com | www.sd58qp.com | www.bxcp4.com | qjdc111.com | 6002e.com | abc7570.com | www.08088006.com | www.7793a.com | www.11475.com | www.011ac.com | ln114.cc | qycps08.com | 56988s.vip | www.32666b.com | www.28000l.com | www.js9090.com | www.939562.com | 808988w.com | 39199w.com | 2998z.com | www.681234.com | www.5719d.com | www.20czj.com | 50099n.com | 380111666.com | 748335.com | www.21884.com | www.5446k.com | www.hw8877.com | 5002d.com | 38244g.com | www.32126w.net | www.27363p.com | www.44447375.com | www.476669.com | 1434c.com | 2767o.com | www.wdylc.com | www.38775ss.com | www.976516.com | 04666n.com | 9694z.com | www.9949n.com | www.658060.com | www.ch8456.com | fff3405.com | 9569822.com | www.0860t.com | www.j36.cc | www.hm2299.com | 3122qq.com | 86811.com | www.2646x.com | www.1434u.com | www.578860.com | y1915y.com | 81511x.com | www.77731x.com | www.81678d.com | bogou800.vip | xpj11558.com | www.8679822.com | www.ba507.com | www.587991.com | 1331aa.com | www.b3653.com | www.04567v.com | www.00ckb.com | 28758.com | 37570t.com | www.35252u.com | www.8499o.com | 7703gg.com | 253504.com | www.c4042.com | www.21202y.com | 85698d.com | 6868.cc | www.56655g.com | www.8039e.com | 1775gg.com | 7334x.com | www.5596877.com | www.xpj3133.net | www.81678r.com | 5003xx.com | i7454.com | www.0601r.com | www.599260.com | ddd444000.com | www.41414688.com | www.ba508.com | www.177806.com | 56987yy.com | www.77888js.com | www.833369.com | 6220zz.com | 7935r.com | www.9737cc.com | www.645880.com | 8159u.cc | www.68003.com | www.75538d.com | zunyi803.com | www.11aicai.com | www.y6087.com | www.156518.com | wns1.net | www.88c668.com | www.zg80.com | 8557v.com | www.427567.com | www.77114z.com | ppp8827.com | www.ks299.net | www.7920a.com | 44ee8331.com | 033n.net | www.115527e.com | www.130883.com | 702215.com | www.65066bb.com | www.368477.com | 70118y.com | www.baifucaipiao.com | www.cp7777b.com | 2618m.com | www.68277555.com | www.701524.com | 0099227.com | www.allcity888.com | www.901172.com | dhydhydhy.com | www.c4042.com | www.621312.com | 08159h.com | www.hg98029.com | www.230961.com | 5589b.com | www.06820d.com | dz3777.com | www.64400a.com | www.6664j.com | 8901e.com | www.995q.net | www.50080w.com | r88.com | www.03365g.com | www.683944.com | 0091234.com | www.0091331.com | 1479a.com | www.hg44768.com | www.bet365yazhou.com | 6095-6095.com | www.5860n.com | www.yi628.com | 3506.com | www.5146z3.com | g2490.com | 3344vn77.com | www.984707.com | yh33883.com | www.48123.hk | www.889489.com | 17500.cn | www.62979a.com | 7726rrr.com | www.2078k.com | www.gei30.com | 3482p.com | www.77658yy.com | yh7003.bet | www.333133y.com | www.9818v.cc | 4036o.com | www.16181v.com | mgm01.net | www.w27229.com | www.022c.cc | 7720c.com | www.88325w.com | 7335y.com | www.9388hg.com | www.782478.com | 55818o.com | www.997286.com | wn99gg.com | www.01711.com | 97000.net | www.r5588.net | www.912254.com | 2805o.com | www.256818.com | 38365d.com | www.1851114.com | 52688g.com | www.44234.com | www.095005.com | www.779955.com | www.00ac.com | 8827vvv.com | www.xmsy.com | 4590p.com | www.79095v.com | 777hg.com | www.114654.com | 2443c.com | www.sun3388.net | www.609816.com | www.ylhg1818.com | www.055.la | 2546.com |