zoukankan      html  css  js  c++  java
  • VS2017 EF本地数据库链接

    1. 本地数据库连接

    server name可以从链接字符串中取: (localdb)MSSQLLocalDB

    注意少写一个.

    {
      "Logging": {
        "IncludeScopes": false,
        "LogLevel": {
          "Microsoft.EntityFrameworkCore": "Warning",
          "Microsoft.AspNetCore.NodeServices": "Warning",
          "Default": "Warning"
        },
        "Data": {
          "Products": {
            "ConnectionString": "Server=(localdb)\MSSQLLocalDB;Database=SportsStoreAngular;Trusted_Connection=True;MultipleActiveResultSets=true"
          },
          "Identity": {
            "ConnectionString": "Server=(localdb)\MSSQLLocalDB;Database=Identity;Trusted_Connection=True;MultipleActiveResultSets=true"
          }
        }
      }
    }

    2.新增连接

    (localdb)mssqllocaldb

    3.修改连接

    修改数据库名称,可以连接到具体的数据库里

  • 相关阅读:
    H5新增属性02
    h5新增属性
    javascript基础
    多列布局和弹性盒模型详解
    边框图片+盒子倒影
    CSS新增边框属性
    css3选择器
    css3基础
    h5新增-2
    h5新增
  • 原文地址:https://www.cnblogs.com/dusf/p/9792340.html
Copyright © 2011-2022 走看看