简体   繁体   中英

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?

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();

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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