FluentData.IntegrationTests/Features/AutoMapping/NestedPropertyTests.cs
(完整代码) 889Busing FluentData._Helpers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FluentData.Features.AutoMapping
{
[TestClass]
public class NestedPropertyTests
{
[TestMethod]
public void Test_multiple_property_levels()
{
var report = TestHelper.Context().Sql(@"select o.*,
l.OrderLineId as OrderLine_OrderLineId,
p.ProductId as OrderLine_Product_ProductId,
p.Name as OrderLine_Product_Name,
c.CategoryId as OrderLine_Product_Category_CategoryId,
c.Name as OrderLine_Product_Category_Name
from [Order] o
inner join OrderLine l on o.OrderId = l.OrderId
inner join Product p on l.ProductId = p.ProductId
inner join Category c on p.CategoryId = c.CategoryId")
.Query<OrderReport>();
Assert.IsTrue(report.Count > 0);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
