网站首页
编程语言
数据库
系统相关
其他分享
编程问答
studentContext
2024-07-17
EFCore -CodeFirst模式 数据库使用SqLite
首先安装nuget包:System.Data.SQLite和SQLite.CodeFirst,如下二图:然后在App.config中配置数据库连接字符串:<connectionStrings><addname="StuDB"connectionString="datasource=BoilerCalculator.db"providerName="System.Data.SQLite.EF6"/&