C# Class Mongo.Context.MongoMetadata

Afficher le fichier Open project: object/MongOData Class Usage Examples

Méthodes publiques

Свойство Type Description
ContainerName string
MappedObjectIdName string
MappedObjectIdType System.Type
ProviderObjectIdName string
ProviderObjectIdType System.Type
RootNamespace string
UseGlobalComplexTypeNames bool

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CreateDSPMetadata ( ) : DSPMetadata
Résultat DataServiceProvider.DSPMetadata

MongoMetadata() public méthode

public MongoMetadata ( string connectionString, MongoConfiguration metadata = null ) : System
connectionString string
metadata MongoConfiguration
Résultat System

ResetDSPMetadata() public static méthode

public static ResetDSPMetadata ( ) : void
Résultat void

ResolveResourceProperty() public méthode

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

ResolveResourceProperty() public méthode

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

ResolveResourceSet() public méthode

public ResolveResourceSet ( string resourceName ) : System.Data.Services.Providers.ResourceSet
resourceName string
Résultat System.Data.Services.Providers.ResourceSet

ResolveResourceType() public méthode

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

Property Details

ContainerName public_oe static_oe property

public static string ContainerName
Résultat string

MappedObjectIdName public_oe static_oe property

public static string MappedObjectIdName
Résultat string

MappedObjectIdType public_oe static_oe property

public static Type,System MappedObjectIdType
Résultat System.Type

ProviderObjectIdName public_oe static_oe property

public static string ProviderObjectIdName
Résultat string

ProviderObjectIdType public_oe static_oe property

public static Type,System ProviderObjectIdType
Résultat System.Type

RootNamespace public_oe static_oe property

public static string RootNamespace
Résultat string

UseGlobalComplexTypeNames public_oe static_oe property

public static bool UseGlobalComplexTypeNames
Résultat bool