FreeSql.Extensions.ZeroEntity 【有状态管理】自动 Include 查询 【无状态管理】指定表查询 Type = Update 的时候,获取更新之前的对象 实体变化记录 实体变化事件 举例1:LeftJoin("table1", "id", "user.id") -> LEFT JOIN [table1] b ON b.[id] = a.[id] 举例2:LeftJoin("table1", "id", "user.id", "xid", "user.xid") -> LEFT JOIN [table1] b ON b.[id] = [a].id] AND b.[xid] = a.[xid] 举例1:InnerJoin("table1", "id", "user.id") -> INNER JOIN [table1] b ON b.[id] = a.[id] 举例2:InnerJoin("table1", "id", "user.id", "xid", "user.xid") -> INNER JOIN [table1] b ON b.[id] = [a].id] AND b.[xid] = a.[xid] 举例1:RightJoin("table1", "id", "user.id") -> RIGTH JOIN [table1] b ON b.[id] = a.[id] 举例2:RightJoin("table1", "id", "user.id", "xid", "user.xid") -> RIGTH JOIN [table1] b ON b.[id] = [a].id] AND b.[xid] = a.[xid] WHERE [Id] IN (...) Where(new { Year = 2017, CategoryId = 198, IsPublished = true }) WHERE [Year] = 2017 AND [CategoryId] = 198 AND [IsPublished] = 1 WHERE [field] = ..