using AUCMA.STORE.Common; using AUCMA.STORE.Entity.DAO; using AUCMA.STORE.SqlSugar.serviceImpl; using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; using System.Linq.Expressions; namespace AUCMA.STORE.UnitTest { [TestClass] public class UnitTest4 { [TestMethod] public void TestMethod1() { test(); } public async void test() { Expression> exp = s1 => true; exp = exp.And(x => x.taskCode == "2109110009" && x.taskStatus != Entity.Enums.TaskStatus.Achieve); List recordTasks = await new BaseServices().Query(exp); } } }