You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
941 B

2 years ago
  1. using System.Collections.Generic;
  2. using System.Data;
  3. using System.Dynamic;
  4. namespace SqlSugar
  5. {
  6. public interface IContextMethods
  7. {
  8. SqlSugarClient Context { get; set; }
  9. ExpandoObject DataReaderToExpandoObject(IDataReader reader);
  10. List<ExpandoObject> DataReaderToExpandoObjectList(IDataReader reader);
  11. List<T> DataReaderToDynamicList<T>(IDataReader reader);
  12. string SerializeObject(object value);
  13. T DeserializeObject<T>(string value);
  14. T TranslateCopy<T>(T sourceObject);
  15. SqlSugarClient CopyContext(bool isCopyEvents = false);
  16. dynamic DataTableToDynamic(DataTable table);
  17. ICacheService GetReflectionInoCacheInstance();
  18. void RemoveCacheAll();
  19. void RemoveCacheAll<T>();
  20. void RemoveCache<T>(string key);
  21. KeyValuePair<string, SugarParameter[]> ConditionalModelToSql(List<IConditionalModel> models,int beginIndex=0);
  22. }
  23. }