Class MetadataBuilder
- Namespace
- Breeze.Persistence.EFCore
- Assembly
- Breeze.Persistence.EFCore.dll
Builds the Breeze metadata a client needs from an Entity Framework model.
public class MetadataBuilder
- Inheritance
-
MetadataBuilder
- Inherited Members
Remarks
Owned types become Breeze complex types, and appear once each however many entities reference them. Enums used by any mapped property are collected as well.
Methods
BuildFrom(DbContext)
Build the Breeze metadata for a context's model.
public static BreezeMetadata BuildFrom(DbContext dbContext)
Parameters
dbContextDbContextThe context whose model is described.
Returns
- BreezeMetadata
The metadata, ready to be serialized and sent to the client.