ICommonDB.cs 632 B

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