0
我打算使用enityspaces执行存储过程,并在自定义文件中写入以下方法。存储过程问题 - 实体空间
public BizUnitCollection loadby_bizunitname(string description) {
BizUnitCollection rtn_Ary = new BizUnitCollection();
esParameters parameters = new esParameters();
parameters.Add(new esParameter("name", description));
rtn_Ary.Load(EntitySpaces.DynamicQuery.esQueryType.StoredProcedure, "formsManager.up_BizUnitTree_SelectLikeName", parameters);
return rtn_Ary;
}
在执行,它已抛出错误的"The stored procedure dbo.formsManager.up_BizUnitTree_SelectLikeName could not be found"
。
该程序总是向给定的存储过程名添加单词'dbo'。这就是为什么它不存在于数据库中,因为它属于另一个模式,而不是dbo模式。任何建议请执行存储过程。
dbo,formsManager,smartforms是我数据库中的现有模式。
此前,访问属于不同架构的数据表时出现同样的问题。那时候,我没有在enity spaces工具中选中“Ignore Schema”选项。它可以很好地处理表格。 Iam面临与存储过程类似的问题。
希望你的帮助。
报告后