Table of Contents

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

sessionFactory ISessionFactory

Supplies 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

NHBreezeMetadata

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

classMeta IEnumerable<IClassMetadata>

Entity metadata types to include in the metadata

Returns

NHBreezeMetadata

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

includeFilter Func<Type, bool>

Function that returns true if a Type should be included in metadata, false otherwise

Returns

NHBreezeMetadata