使用NuGet的EF6和SQLite的最新版本.我终于得到app.config文件在Stackoverflow上的一些有用的帖子后工作.现在问题是虽然数据库是,但是没有创建表.
我的app.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<entityFramework>
<providers>
<provider invariantName="System.Data.SQLite"
type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
</providers>
</entityFramework>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite" />
<add name="SQLite Data Provider"
invariant="System.Data.SQLite"
description=".Net Framework Data Provider for SQLite"
type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
<remove invariant="System.Data.SQLite.EF6" />
<add name="SQLite Data Provider (Entity Framework 6)"
invariant="System.Data.SQLite.EF6"
description=".Net Framework Data Provider for SQLite (Entity …Run Code Online (Sandbox Code Playgroud) .net sqlite system.data.sqlite ef-code-first entity-framework-6
我正在使用 Vue.js、Babel 和 WebPack 创建我的第一个 SPA。Vue 组件具有以下脚本:
<script>
export default {
props: {
name: String,
required: true
}
}
</script>
Run Code Online (Sandbox Code Playgroud)
当我运行 eslint 时,我收到以下警告和错误:
8:5 warning Prop 'name' requires default value to be set vue/require-default-prop
9:5 warning Prop 'required' requires default value to be set vue/require-default-prop
9:15 error The "required" property should be a constructor vue/require-prop-type-constructor
Run Code Online (Sandbox Code Playgroud)
我已经从我正在关注的教程中复制了代码,但我不明白如何修复它?