Class NHMetadataBuilder
- Namespace
- Breeze.Persistence.NH
- Assembly
- Breeze.Persistence.NH.dll
Builds a data structure containing the metadata required by Breeze. Breeze metadata schema
public class NHMetadataBuilder
- Inheritance
-
NHMetadataBuilder
- Inherited Members
Constructors
NHMetadataBuilder(ISessionFactory)
Create a metadata builder for a session factory.
public NHMetadataBuilder(ISessionFactory sessionFactory)
Parameters
sessionFactoryISessionFactorySupplies the NHibernate mappings the Breeze metadata is built from.
Methods
BuildMetadata()
Build the Breeze metadata.
The result can be converted to JSON and sent to the Breeze client.
public NHBreezeMetadata BuildMetadata()
Returns
BuildMetadata(IEnumerable<IClassMetadata>)
Build the Breeze metadata.
The result can be converted to JSON and sent to the Breeze client.
public NHBreezeMetadata BuildMetadata(IEnumerable<IClassMetadata> classMeta)
Parameters
classMetaIEnumerable<IClassMetadata>Entity metadata types to include in the metadata
Returns
BuildMetadata(Func<Type, bool>?)
Build the Breeze metadata.
The result can be converted to JSON and sent to the Breeze client.
public NHBreezeMetadata BuildMetadata(Func<Type, bool>? includeFilter)
Parameters
includeFilterFunc<Type, bool>Function that returns true if a Type should be included in metadata, false otherwise