C# Class Mongo.Context.MongoMetadata

Show file Open project: object/MongOData Class Usage Examples

Public Properties

Property Type Description
ContainerName string
MappedObjectIdName string
MappedObjectIdType System.Type
ProviderObjectIdName string
ProviderObjectIdType System.Type
RootNamespace string
UseGlobalComplexTypeNames bool

Private Properties

Property Type Description
AddDocumentProperty void
AddDocumentType System.Data.Services.Providers.ResourceType
AddProviderType void
AddResourceProperty void
AddResourceSet System.Data.Services.Providers.ResourceSet
GetCollectionNames IEnumerable
GetElementType System.Type
GetOrCreateMetadataCache MongoMetadataCache
GetQualifiedPropertyName string
GetQualifiedTypeName string
GetQualifiedTypePrefix string
GetRawValueType System.Type
GetResourcePropertyName string
IsObjectId bool
NormalizeResourcePropertyName string
PopulateMetadata void
PopulateMetadataFromCollection void
RegisterArrayProperty void
RegisterDocumentProperties void
RegisterDocumentProperty void
RegisterResourceProperty void
ResolveProviderType System.Type
UpdateResourceSet void

Public Methods

Method Description
CreateDSPMetadata ( ) : DSPMetadata
MongoMetadata ( string connectionString, MongoConfiguration metadata = null ) : System
ResetDSPMetadata ( ) : void
ResolveResourceProperty ( System.Data.Services.Providers.ResourceType resourceType, BsonElement element ) : System.Data.Services.Providers.ResourceProperty
ResolveResourceProperty ( System.Data.Services.Providers.ResourceType resourceType, string propertyName ) : System.Data.Services.Providers.ResourceProperty
ResolveResourceSet ( string resourceName ) : System.Data.Services.Providers.ResourceSet
ResolveResourceType ( string resourceName, string ownerPrefix = null ) : System.Data.Services.Providers.ResourceType

Private Methods

Method Description
AddDocumentProperty ( MongoContext context, string collectionName, System.Data.Services.Providers.ResourceType collectionType, string propertyName, BsonElement element, bool isCollection = false ) : void
AddDocumentType ( MongoContext context, string collectionName, BsonDocument document, ResourceTypeKind resourceTypeKind ) : System.Data.Services.Providers.ResourceType
AddProviderType ( string collectionName, string elementName, BsonValue elementValue, bool isKey = false ) : void
AddResourceProperty ( MongoContext context, string collectionName, System.Data.Services.Providers.ResourceType collectionType, BsonElement element, bool treatObjectIdAsKey = false ) : void
AddResourceSet ( MongoContext context, string collectionName, BsonDocument document = null ) : System.Data.Services.Providers.ResourceSet
GetCollectionNames ( MongoContext context ) : IEnumerable
GetElementType ( BsonElement element, bool treatObjectIdAsKey ) : Type
GetOrCreateMetadataCache ( ) : MongoMetadataCache
GetQualifiedPropertyName ( string typeName, string propertyName ) : string
GetQualifiedTypeName ( string collectionName, string resourceName ) : string
GetQualifiedTypePrefix ( string ownerName ) : string
GetRawValueType ( BsonValue elementValue, bool isKey = false ) : Type
GetResourcePropertyName ( BsonElement element, ResourceTypeKind resourceTypeKind ) : string
IsObjectId ( BsonElement element ) : bool
NormalizeResourcePropertyName ( string propertyName ) : string
PopulateMetadata ( MongoContext context ) : void
PopulateMetadataFromCollection ( MongoContext context, string collectionName, System.Data.Services.Providers.ResourceSet resourceSet ) : void
RegisterArrayProperty ( MongoContext context, System.Data.Services.Providers.ResourceType collectionType, BsonElement element ) : void
RegisterDocumentProperties ( MongoContext context, System.Data.Services.Providers.ResourceType collectionType, BsonElement element ) : void
RegisterDocumentProperty ( MongoContext context, System.Data.Services.Providers.ResourceType resourceType, BsonElement element ) : void
RegisterResourceProperty ( MongoContext context, System.Data.Services.Providers.ResourceType resourceType, BsonElement element ) : void
ResolveProviderType ( BsonValue elementValue, bool isKey ) : Type
UpdateResourceSet ( MongoContext context, System.Data.Services.Providers.ResourceSet resourceSet, BsonDocument document ) : void

Method Details

CreateDSPMetadata() public method

public CreateDSPMetadata ( ) : DSPMetadata
return DataServiceProvider.DSPMetadata

MongoMetadata() public method

public MongoMetadata ( string connectionString, MongoConfiguration metadata = null ) : System
connectionString string
metadata MongoConfiguration
return System

ResetDSPMetadata() public static method

public static ResetDSPMetadata ( ) : void
return void

ResolveResourceProperty() public method

public ResolveResourceProperty ( System.Data.Services.Providers.ResourceType resourceType, BsonElement element ) : System.Data.Services.Providers.ResourceProperty
resourceType System.Data.Services.Providers.ResourceType
element BsonElement
return System.Data.Services.Providers.ResourceProperty

ResolveResourceProperty() public method

public ResolveResourceProperty ( System.Data.Services.Providers.ResourceType resourceType, string propertyName ) : System.Data.Services.Providers.ResourceProperty
resourceType System.Data.Services.Providers.ResourceType
propertyName string
return System.Data.Services.Providers.ResourceProperty

ResolveResourceSet() public method

public ResolveResourceSet ( string resourceName ) : System.Data.Services.Providers.ResourceSet
resourceName string
return System.Data.Services.Providers.ResourceSet

ResolveResourceType() public method

public ResolveResourceType ( string resourceName, string ownerPrefix = null ) : System.Data.Services.Providers.ResourceType
resourceName string
ownerPrefix string
return System.Data.Services.Providers.ResourceType

Property Details

ContainerName public static property

public static string ContainerName
return string

MappedObjectIdName public static property

public static string MappedObjectIdName
return string

MappedObjectIdType public static property

public static Type,System MappedObjectIdType
return System.Type

ProviderObjectIdName public static property

public static string ProviderObjectIdName
return string

ProviderObjectIdType public static property

public static Type,System ProviderObjectIdType
return System.Type

RootNamespace public static property

public static string RootNamespace
return string

UseGlobalComplexTypeNames public static property

public static bool UseGlobalComplexTypeNames
return bool