MetadataStore Class
MetadataStore Class Breeze.sharp
An instance of the MetadataStore contains all of the metadata about a collection of EntityTypes and ComplexTypes.
Inheritance Hierarchy

SystemObject
  Breeze.SharpMetadataStore

Namespace: Breeze.Sharp
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: 0.6.0.5 (0.6.0.5)
Syntax

public class MetadataStore : IJsonSerializable

The MetadataStore type exposes the following members.

Constructors

  NameDescription
Public methodMetadataStore
Initializes a new instance of the MetadataStore class
Top
Methods

  NameDescription
Public methodAddDataService
Adds a DataService to this MetadataStore. If a DataService with the same serviceName is already in the MetadataStore an exception will be thrown unless the 'shouldOverwrite' parameter is set to 'true'.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExportMetadata
Exports metadata as a string.
Public methodExportMetadata(TextWriter)
Exports metadata via a TextWriter.
Public methodFetchMetadata(DataService)
Fetches the metadata for a specified 'service'. This method is automatically called internally by an EntityManager before its first query against a new service.
Public methodFetchMetadata(DataService, CancellationToken)
Fetches the metadata for a specified 'service'. This method is automatically called internally by an EntityManager before its first query against a new service.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetComplexType(Type)
Returns an ComplexType given its CLR type.
Public methodGetComplexType(String, Boolean)
Returns an EntityType given its name.
Public methodGetDataService
Returns the DataService for a specified service name or null.
Public methodGetDefaultResourceName(Type)
Returns the default resource name for the specified CLR type.
Public methodGetDefaultResourceName(EntityType)
Returns the default resource name for the specified EntityType type.
Public methodGetEntityType(Type)
Returns an EntityType given its CLR type.
Public methodGetEntityType(String, Boolean)
Returns an EntityType given its name.
Public methodGetEntityTypeForResourceName
Returns the EntityType for a specified resourceName.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMessages
Public methodGetStructuralType
Returns an StructuralType (EntityType or ComplexType) given its CLR type.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodImportMetadata(TextReader, Boolean)
Imports metadata via a TextReader.
Public methodImportMetadata(String, Boolean)
Imports metadata from a string.
Public methodStatic memberIsStructuralType
Returns whether the specified CLR type is either an IEntity or a IComplexObject.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetResourceName
Sets a resourceName for a specified clrType.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberMetadataVersion
Top
Properties

  NameDescription
Public propertyAllowedMetadataMismatchTypes
Allowed types of metadata mismatches.
Public propertyComplexTypes
Returns a list of all of the ComplexTypes within this store.
Public propertyStatic memberDetached
Public propertyEntityTypes
Returns a list of all of the EntityTypes within this store.
Public propertyNamingConvention
The NamingConvention associated with this MetadataStore.
Public propertyStoreID
Top
Events

  NameDescription
Public eventMetadataMismatch
Fired whenever an entity's state is changing in any significant manner.
Top
See Also

Reference