FreeSql.Extensions.ZeroEntity
创建新的ZeroDbCotext实例
IfreeSql 对象
动态表结构描述
是否强制同步表结构
Schema 未验证通过时抛出验证异常
初始化一个 ZeroDbContext 对象,暂不指定任何Schema
同步指定表结构
【有状态管理】自动 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] = ..