gpt4 book ai didi

c# - ADO.NET 数据服务

转载 作者:太空宇宙 更新时间:2023-11-03 11:56:17 24 4
gpt4 key购买 nike

我正在考虑将 ADO.NET 数据服务与 silverlight 结合使用。我一直在看 Data Model and Data Service Implementations (ADO.NET Data Services/Silverlight) msdn 上的主题。在他们的示例中,他们构建了一个从数据库生成的数据模型,并查询数据模型中的实体。在我的例子中,我想使用存储过程,所以我创建了数据模型并添加了存储过程而不是表和 View ,但现在我不确定如何执行它们。有人有示例吗?

最佳答案

只需在构建 Entity Framework 模型时指定存储过程。有 lots of documentation about this .您还可以查看 a screencast .

需要澄清的是,我认为您的问题没有任何特定于数据服务的内容。这更像是一个 Entity Framework 问题。

关于c# - ADO.NET 数据服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/360329/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com