从ADO.NET执行T-SQL视图 [英] Executing T-Sql View from ADO.NET

查看:194
本文介绍了从ADO.NET执行T-SQL视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是可能执行从C#代码视图。如果它是那么我想知道,如果参数化的观点存在,我应该如何使用它们。参数化意味着我们在存储过程中使用相同的参数说明那里的条件。

Is this possible to execute a View from C# code. If it is then I would like to know if parametrized views exists and how should I use them. Parametrized means same parameters we use in Stored Procedures for stating where conditions.

推荐答案

一不执行的意见。一个执行查询。如果查询从视图或从表中选择行,ADO.NET不知道也不关心。

One does not execute views. One executes a query. If the query selects rows from a view or from a table, ADO.NET doesn't know or care.

这篇关于从ADO.NET执行T-SQL视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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