在流利的Nhibernate中查看 [英] view in Fluent Nhibernate

查看:67
本文介绍了在流利的Nhibernate中查看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Fluent nhibernate使用数据库视图?

如何使用nhibernate技术调用在数据库中手动创建的视图,或者nhibernate中是否有任何直接创建视图的选项?

How to use database view with Fluent nhibernate?
How can i recall views that are created manually in database with nhibernate technology or is there any option in nhibernate that create views directly?

推荐答案

您可以这种方式映射现有视图:



You can map existing view in this way:

public YourClassNameMap()
        {
            Table("YourQueryName");
            SchemaAction.None();
            ReadOnly();
        }


这篇关于在流利的Nhibernate中查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆