Skip to content

懒加载回填数据的机制是什么? #1656

Closed Answered by 2881099
misgw asked this question in Q&A
Discussion options

You must be logged in to vote
fsql.Select<User>()
    .Where(p => p.IsActive)
    .GroupBy(p => new { p.OrderId })
    .WithTempQuery(p => new { Id = p.Max(p.Value.Id), OrderId = p.Key.OrderId })
    .From<Order>()
    .InnerJoin((a, b) => a.OrderId == b.Id)
    .OrderByDescending((a, b) => a.OrderId)
    .ToListAsync((a, b) => new User { Id = a.Id, OrderId = a.OrderId, Order = b } );

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@misgw
Comment options

@2881099
Comment options

Answer selected by misgw
@misgw
Comment options

@misgw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants