c# - Efficiently requesting multiple entities -


i need request lists of different entities without relation (in order create relation). example:

var attributegroups = db.attribute_group.where(g => attributegroupids.contains(g.id)); var attributes = db.attribute.where(g => attributeids.contains(g.id)); 

when iterate results later, make multiple database calls? there way make 1?

your option calling stored procedure return multiple resultsets. see http://romiller.com/2012/08/15/code-first-stored-procedures-with-multiple-results/


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -