Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
9a62e0ce
Commit
9a62e0ce
authored
Jun 14, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQLiteHelper
1. 添加 IsTableValid 添加出错提示,指示哪个表没有了 2. 修改 InitNoBuild() 数据库文件没有了,也不会 创建新的数据库
parent
4b23182f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
SQLiteDbContext.cs
Project.SQLiteHelper/SQLiteHelper/SQLiteDbContext.cs
+0
-1
SQLiteHelper.cs
Project.SQLiteHelper/SQLiteHelper/SQLiteHelper.cs
+1
-0
No files found.
Project.SQLiteHelper/SQLiteHelper/SQLiteDbContext.cs
View file @
9a62e0ce
...
...
@@ -203,7 +203,6 @@ namespace SQLite
{
if
(!
System
.
IO
.
File
.
Exists
(
DBPath
))
{
Build
();
return
false
;
}
//TODO, 表不对删除就好。。。没必要重新创建数据库
...
...
Project.SQLiteHelper/SQLiteHelper/SQLiteHelper.cs
View file @
9a62e0ce
...
...
@@ -617,6 +617,7 @@ namespace SQLite
if
(
sqls
.
Count
()
==
0
)
{
//不存在该表,创建
ErrorMsg
=
$"sqlite_master 不能找到 name = '
{
tablename
}
' 的 sql"
;
isVaild
=
false
;
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment