Iam在C#应用程序中实现了实体空间,并且能够成功地执行如下查询。
coll.query.where(coll.prodlineid.equal("id") if( coll.query.load()
但是,我需要将代码中的所有这些查询替换为存储过程。为此,我使用了: coll.Load(esQuerytype.storedprocedure,"testproc",param)
此时,由于'EntitySpaces.Core.esEntityCollection.Load(EntitySpaces.DynamicQuery.esQueryType,字符串,参数object[])‘由于其保护级别而无法访问,因此收到错误
esEntityCollection是一个元数据文件,因此我无法将其中的访问修饰符从protected更改为public。
帮助:-)
发布于 2010-05-04 23:14:50
在您的自定义分部类(已生成)中,添加如下所示的方法。
public void GetProducts(int LineID)
{
this.Load( ...<put your stored proc call here>...);
}然后,您可以通过以下方式调用存储的proc:
ProductCollection coll = new ProductCollection();
coll.GetProducts(lineID);https://stackoverflow.com/questions/1830583
复制相似问题