简体   繁体   English

是否可以将Linq-to-SQL与nhibernate envers一起使用?

[英]Is it possible to use Linq-to-SQL with nhibernate envers?

Is there a way to use Linq-to-SQL with nhibernate envers to query through revisions without having to use envers audit expressions? 有没有一种方法可以将Linq-to-SQL与nhibernate envers一起使用来查询修订版本,而不必使用envers审核表达式?

I would like to avoid using something like this, which requires hardcoded string property names: 我想避免使用类似这样的东西,它需要硬编码的字符串属性名称:

reader.CreateQuery() .ForEntitiesAtRevision(1) .Add(AuditEntity.Property("FirstName").Eq("bob")) .Results(); reader.CreateQuery().ForEntitiesAtRevision(1).Add(AuditEntity.Property(“ FirstName”)。Eq(“ bob”)).Results();

不。唯一内置的查询api是您提到的“条件类似”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM