ObjectDBTable.cs 441 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using SQLite;
  7. namespace Extensometer.Data
  8. {
  9. public class ObjectDBTable:SQLiteConnection
  10. {
  11. public ObjectDBTable(string OjDbPath):base(OjDbPath)
  12. {
  13. CreateTable<ObjectData>();
  14. }
  15. public TableQuery<ObjectData> ObjectDatas { get { return this.Table<ObjectData>(); } }
  16. }
  17. }