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
556f69da
Commit
556f69da
authored
Aug 29, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/master' into dev6.0
parents
abd54323
b3f2bc58
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
183 deletions
+28
-183
DBTable.cs
Project.SQLiteHelper/SQLiteHelper/DBTable.cs
+2
-7
IgnoreAttribute.cs
Project.SQLiteHelper/SQLiteHelper/IgnoreAttribute.cs
+0
-9
SQLiteHelper.cs
Project.SQLiteHelper/SQLiteHelper/SQLiteHelper.cs
+26
-167
No files found.
Project.SQLiteHelper/SQLiteHelper/DBTable.cs
View file @
556f69da
...
@@ -9,8 +9,6 @@ namespace SQLite
...
@@ -9,8 +9,6 @@ namespace SQLite
public
class
DBTable
<
T
>
:
IDBTable
public
class
DBTable
<
T
>
:
IDBTable
where
T
:
new
()
where
T
:
new
()
{
{
public
List
<
SQLiteHelper
.
ArrayFieldTypeInfo
>
ArrayFieldTypeInfos
=
new
List
<
SQLiteHelper
.
ArrayFieldTypeInfo
>();
public
string
TableName
{
get
;
private
set
;
}
public
string
TableName
{
get
;
private
set
;
}
private
long
freeID
=
0
;
private
long
freeID
=
0
;
...
@@ -32,10 +30,7 @@ namespace SQLite
...
@@ -32,10 +30,7 @@ namespace SQLite
{
{
get
get
{
{
if
(
ArrayFieldTypeInfos
.
Count
()
==
0
)
return
ddl
;
return
ddl
;
else
return
SQLiteHelper
.
GetCreateTableCommandText
(
typeof
(
T
),
ArrayFieldTypeInfos
.
ToArray
());
}
}
}
}
...
@@ -81,7 +76,7 @@ namespace SQLite
...
@@ -81,7 +76,7 @@ namespace SQLite
sql
+=
" "
+
condition
;
sql
+=
" "
+
condition
;
DataTable
dataTable
=
sqliteHelper
.
ExecuteReader
(
sql
);
DataTable
dataTable
=
sqliteHelper
.
ExecuteReader
(
sql
);
return
SQLiteHelper
.
ToObjs
<
T
>(
dataTable
,
ArrayFieldTypeInfos
.
ToArray
()
);
return
SQLiteHelper
.
ToObjs
<
T
>(
dataTable
);
}
}
/// <summary>
/// <summary>
...
...
Project.SQLiteHelper/SQLiteHelper/IgnoreAttribute.cs
View file @
556f69da
...
@@ -11,15 +11,6 @@ namespace SQLite
...
@@ -11,15 +11,6 @@ namespace SQLite
}
}
}
}
public
class
BortherAttribute
:
Attribute
{
}
public
class
ChildAttribute
:
Attribute
{
}
public
class
PropertyIndexAttribute
:
Attribute
public
class
PropertyIndexAttribute
:
Attribute
{
{
...
...
Project.SQLiteHelper/SQLiteHelper/SQLiteHelper.cs
View file @
556f69da
This diff is collapsed.
Click to expand it.
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