You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
734 B
40 lines
734 B
2 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace OrmTest
|
||
|
{
|
||
|
|
||
|
public class UExp
|
||
|
{
|
||
|
public static void Init()
|
||
|
{
|
||
|
new UExp().Test();
|
||
|
}
|
||
|
private readonly ITestExo order;
|
||
|
public UExp()
|
||
|
{
|
||
|
order = new TestExo();
|
||
|
}
|
||
|
|
||
|
public void Test()
|
||
|
{
|
||
|
var list = NewUnitTest.Db.Queryable<Order>().Where(it => it.Id == order.GetCurrentOrder.Id).ToList();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
public class TestExo : ITestExo
|
||
|
{
|
||
|
|
||
|
public Order GetCurrentOrder
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return new Order();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|