针对Linq,Expression,CommonUtil,HttpClient,DynamicType,Redis,MongoDB,RuntimeCache进行了拓展的工具类
![](https://camo.githubusercontent.com/0e8cae4e89dba11834e01d6f755bf084cb64511c8b05506536fd0a802dfaa681/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e64656e636965732d4e65745374616e64617264322d626c75652e737667)
使用linq的拓展需要引入XExten.XCore域名空间
[Fact]
public void ToOver_Test()
{
List<TestA> Li = new List<TestA>();
Li.ToOver(t => t.Name);
}
使用expression的拓展需要引入XExten.XExpres域名空间
[Fact]
public void GetExpression_Test()
{
string[] arr = new[] { "Id", "Name" };
var res = XExp.GetExpression<TestA>(arr);
}
使用Commom工具类需要引入XExten.XPlus域名空间
[Fact]
public void XBarHtml_Test()
{
var res = XPlusEx.XBarHtml("ABC", 3, 50);
}
使用HttpClient需要XExten.HttpFactory,使用DynamicType需要XExten.DynamicType.
在项目中同时支持使用momeryCache,redis,mongodb