using System.Collections.Generic; using System.Data; using System.Dynamic; namespace SqlSugar { public interface IContextMethods { SqlSugarClient Context { get; set; } ExpandoObject DataReaderToExpandoObject(IDataReader reader); List DataReaderToExpandoObjectList(IDataReader reader); List DataReaderToDynamicList(IDataReader reader); string SerializeObject(object value); T DeserializeObject(string value); T TranslateCopy(T sourceObject); SqlSugarClient CopyContext(bool isCopyEvents = false); dynamic DataTableToDynamic(DataTable table); ICacheService GetReflectionInoCacheInstance(); void RemoveCacheAll(); void RemoveCacheAll(); void RemoveCache(string key); KeyValuePair ConditionalModelToSql(List models,int beginIndex=0); } }