ICommonDB.cs 707 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Data;
  6. namespace Aitex.Core.RT.DBCore
  7. {
  8. public interface ICommonDB
  9. {
  10. void CreateTableIfNotExisted(string table, Dictionary<string, Type> columns, bool addPID, string primaryKey);
  11. void CreateTableIndexIfNotExisted(string table, string index, string sql);
  12. void CreateTableColumn(string table, Dictionary<string, Type> columns);
  13. void Insert(string sql);
  14. int SyncInsert(string sql);
  15. void Update(string sql);
  16. int SyncUpdate(string sql);
  17. DataSet ExecuteDataset(string cmdText, params object[] p);
  18. }
  19. }