31 lines
1.0 KiB
C#
31 lines
1.0 KiB
C#
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<ExpandoObject> DataReaderToExpandoObjectList(IDataReader reader);
|
|
List<T> DataReaderToList<T>(IDataReader reader);
|
|
string SerializeObject(object value);
|
|
T DeserializeObject<T>(string value);
|
|
T TranslateCopy<T>(T sourceObject);
|
|
SqlSugarClient CopyContext(bool isCopyEvents = false);
|
|
dynamic DataTableToDynamic(DataTable table);
|
|
List<T> DataTableToList<T>(DataTable table);
|
|
ICacheService GetReflectionInoCacheInstance();
|
|
void RemoveCacheAll();
|
|
void RemoveCacheAll<T>();
|
|
void RemoveCache<T>(string key);
|
|
KeyValuePair<string, SugarParameter[]> ConditionalModelToSql(List<IConditionalModel> models,int beginIndex=0);
|
|
|
|
}
|
|
}
|