Kizspy | Question: 38
(Choose 1 answer)
The following code uses ODataModelBuilder to construct an EDM. What does it do?
var builder new ODataConventionModelBuilder();
builder.EntitySet<Product>("Products");
builder.EntitySet<Category>("Categories");
return builder.GetEdmModel();
A. It creates two entity sets, Products and Categories, and infers their properties and relationships by convention from
the C# classes.
B. It defines two complex types that cannot be queried directly.
C. It creates an empty model and waits for the database to provide the schema.
D. It registers two controllers named Products and Categories.