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