[英]How do I add Oracle Flashback columns to a .Net Core Entity Framework EDMX on affected entities?
During development of a .Net Core EF app, the DBAs implemented Oracle Flashback, which is queried by addressing the table being audited instead of a manual join to another table.在 .Net Core EF 应用程序的开发过程中,DBA 实施了 Oracle Flashback,通过寻址被审计的表而不是手动连接到另一个表来查询。 How do I add these columns to the EDMX files so that the app may query them and present results?
如何将这些列添加到 EDMX 文件,以便应用程序可以查询它们并显示结果? Simply refreshing the EDMX doesn't bring in the Flashback information.
简单地刷新 EDMX 不会引入闪回信息。
You'll need to run Raw SQL Queries .您需要运行原始 SQL 查询。 Eg
例如
using (var context = new BloggingContext())
{
var sql = "SELECT * FROM dbo.Blogs AS OF TIMESTAMP TO_TIMESTAMP('2021-03-29 13:34:12', 'YYYY-MM-DD HH24:MI:SS')";
var blogs = context.Blogs.SqlQuery(sql).ToList();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.