问题描述
大家好
我在写我的CS2009项目查询,如下
A.&NBSP;&NBSP;&NBSP; CommerceQueryRelatedItem<的 CommerceEntity 强>> childProductQuery =新CommerceQueryRelatedItem<的 CommerceEntity 强>>(" ChildProducts","产品与QUOT);
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;
然后我在我的项目中添加了Product.cs和Category.cs文件(包含产品实体类),我能够在下面编写查询项目
B。 CommerceQueryRelatedItem<的 ExtendingMCCFProfile.Produc 强> T> childProductQuery = new CommerceQueryRelatedItem< Product>(Category.RelationshipName.ChildProducts,Product.ModelNameDefinition);
注意: ExtendingMCCFProfile是我项目的命名空间。
似乎在我的项目中获得产品,类别等课程 我只需要添加一些我缺少的程序集的引用,并且我不必在我的项目中添加可扩展性工具包的实体(这些文件)。请指导我。
Q2。与产品和类别实体一样,我没有在可扩展性工具包中找到DiscountDefinition类。请告诉我在哪里可以找到这门课。
提前致谢
THE SK
在SK(桑迪普卡尔拉)
HI All
I was writing the queries in my CS2009 project as below
A. CommerceQueryRelatedItem<CommerceEntity> childProductQuery = new CommerceQueryRelatedItem<CommerceEntity>("ChildProducts", "Product");
Then I have added the Product.cs and Category.cs file( which contain product entity class) in my project and I was able to write the query as below in my project
B. CommerceQueryRelatedItem<ExtendingMCCFProfile.Product> childProductQuery = new CommerceQueryRelatedItem<Product>(Category.RelationshipName.ChildProducts, Product.ModelNameDefinition);
Note : ExtendingMCCFProfile is the namespace of my project.
It seems like to get the classes such as Product,Category in my Project I am only required to add reference of some assembly which I am missing and I do not have to add entities( these file) of extensibility kit in my project. Please guide me on this.
Q2. Like Product and Category entities I have not found DiscountDefinition Class in extensibility kit. Please tell me where I can find this class.
Thanks in advance
THE SK
THE SK (Sandeep Kalra)
这篇关于Commerce查询编写和DiscountDefinitionClass ????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!