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
Post a Comment