ICommonDB.cs 630 B

123456789101112131415161718192021222324
  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. DataSet ExecuteDataset(string cmdText, params object[] p);
  15. int GetCount(string cmdText, params object[] p);
  16. }
  17. }