An instance of the MetadataStore contains all of the metadata about a collection of EntityTypes
and ComplexTypes.
Inheritance Hierarchy
Breeze.SharpMetadataStore
Namespace: Breeze.Sharp
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: 0.6.0.5 (0.6.0.5)
Syntax
The MetadataStore type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| MetadataStore | Initializes a new instance of the MetadataStore class |
Methods
| Name | Description | |
|---|---|---|
| AddDataService |
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'.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| ExportMetadata |
Exports metadata as a string.
| |
| ExportMetadata(TextWriter) |
Exports metadata via a TextWriter.
| |
| FetchMetadata(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.
| |
| FetchMetadata(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.
| |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetComplexType(Type) |
Returns an ComplexType given its CLR type.
| |
| GetComplexType(String, Boolean) |
Returns an EntityType given its name.
| |
| GetDataService |
Returns the DataService for a specified service name or null.
| |
| GetDefaultResourceName(Type) |
Returns the default resource name for the specified CLR type.
| |
| GetDefaultResourceName(EntityType) |
Returns the default resource name for the specified EntityType type.
| |
| GetEntityType(Type) |
Returns an EntityType given its CLR type.
| |
| GetEntityType(String, Boolean) |
Returns an EntityType given its name.
| |
| GetEntityTypeForResourceName |
Returns the EntityType for a specified resourceName.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetMessages | ||
| GetStructuralType |
Returns an StructuralType (EntityType or ComplexType) given its CLR type.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ImportMetadata(TextReader, Boolean) |
Imports metadata via a TextReader.
| |
| ImportMetadata(String, Boolean) |
Imports metadata from a string.
| |
| IsStructuralType |
Returns whether the specified CLR type is either an IEntity or a IComplexObject.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetResourceName |
Sets a resourceName for a specified clrType.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| MetadataVersion |
Properties
| Name | Description | |
|---|---|---|
| AllowedMetadataMismatchTypes |
Allowed types of metadata mismatches.
| |
| ComplexTypes |
Returns a list of all of the ComplexTypes within this store.
| |
| Detached | ||
| EntityTypes |
Returns a list of all of the EntityTypes within this store.
| |
| NamingConvention |
The NamingConvention associated with this MetadataStore.
| |
| StoreID |
Events
| Name | Description | |
|---|---|---|
| MetadataMismatch |
Fired whenever an entity's state is changing in any significant manner.
|
See Also