【发布时间】:2017-06-21 12:07:23
【问题描述】:
我如何在 LiteDb 中的两个表之间加入 SQL 之类的 示例:我有两个表 User 和 ActivityLog
这是模型
public class ActivityLog
{
[BsonId]
public int Id { get; set; }
public string UserId { get; set; }
public string Action { get; set; }
public DateTime ActionDateTime { get; set; }
}
public class User
{
[BsonId]
public int Id { get; set; }
public string UserId { get; set; }
public string UserName { get; set; }
public DateTime LoginDate { get; set; }
}
我需要加入 Activity.UserID = User.UserId。 有没有办法像sql一样加入
【问题讨论】:
标签: c# linq c#-4.0 c#-3.0 litedb