Browse Source
Rename AbpCustomGuidMapper to AbpGuidCustomBsonTypeMapper for consistency
pull/22641/head
maliming
1 year ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
2 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.MongoDB/Volo/Abp/MongoDB/AbpCustomGuidMapper.cs
-
framework/src/Volo.Abp.MongoDB/Volo/Abp/MongoDB/AbpMongoDbModule.cs
|
|
|
@ -3,7 +3,7 @@ using MongoDB.Bson; |
|
|
|
|
|
|
|
namespace Volo.Abp.MongoDB; |
|
|
|
|
|
|
|
public class AbpCustomGuidMapper : ICustomBsonTypeMapper |
|
|
|
public class AbpGuidCustomBsonTypeMapper : ICustomBsonTypeMapper |
|
|
|
{ |
|
|
|
public bool TryMapToBsonValue(object value, out BsonValue bsonValue) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ public class AbpMongoDbModule : AbpModule |
|
|
|
static AbpMongoDbModule() |
|
|
|
{ |
|
|
|
BsonSerializer.TryRegisterSerializer(new GuidSerializer(GuidRepresentation.Standard)); |
|
|
|
BsonTypeMapper.RegisterCustomTypeMapper(typeof(Guid), new AbpCustomGuidMapper()); |
|
|
|
BsonTypeMapper.RegisterCustomTypeMapper(typeof(Guid), new AbpGuidCustomBsonTypeMapper()); |
|
|
|
} |
|
|
|
|
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
|