c# - return IEnumerable<ProductCategory> MongoDB.Driver -


please, tell me how data product category mongo table , return data ienumerable. thank in advance!

public class categoryservice<productcategory> : entityservice<productcategory>                                                  productcategory: imongoentity {     public ienumerable<productcategory> getallcategories()     {         var collection = this.mongoconnectionhanler                              .mongocollection                              .find<productcategory>("productcategory");          return collection.xxx;     } } 


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -