Commit 3961213e authored by 潘栩锋's avatar 潘栩锋 🚴

1.添加 规范 数据库每个表必须有ID

parent 4115e212
...@@ -39,7 +39,7 @@ namespace SQLite ...@@ -39,7 +39,7 @@ namespace SQLite
} }
} }
SQLiteHelper sqliteHelper; public SQLiteHelper sqliteHelper;
public DBTable() public DBTable()
{ {
......
...@@ -31,4 +31,6 @@ namespace SQLite ...@@ -31,4 +31,6 @@ namespace SQLite
void Init(SQLiteHelper sQLiteHelper); void Init(SQLiteHelper sQLiteHelper);
} }
} }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SQLite
{
public interface IDbBase
{
Int64 ID { get; set; }
}
}
...@@ -183,4 +183,5 @@ namespace SQLite ...@@ -183,4 +183,5 @@ namespace SQLite
} }
} }
} }
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="DBTable.cs" /> <Compile Include="DBTable.cs" />
<Compile Include="IDbBase.cs" />
<Compile Include="IDBTable.cs" /> <Compile Include="IDBTable.cs" />
<Compile Include="IgnoreAttribute.cs" /> <Compile Include="IgnoreAttribute.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment