mirror of https://github.com/abpframework/abp.git
2 changed files with 33 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||
using Volo.Abp.Data; |
|||
|
|||
namespace Volo.Abp.MongoDB.DistributedEvents; |
|||
|
|||
public static class EventInboxMongoModelBuilderExtensions |
|||
{ |
|||
public static void ConfigureEventInbox(this IMongoModelBuilder builder) |
|||
{ |
|||
Check.NotNull(builder, nameof(builder)); |
|||
|
|||
builder.Entity<IncomingEventRecord>(b => |
|||
{ |
|||
b.CollectionName = AbpCommonDbProperties.DbTablePrefix + "EventInbox"; |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
using JetBrains.Annotations; |
|||
using Volo.Abp.Data; |
|||
|
|||
namespace Volo.Abp.MongoDB.DistributedEvents; |
|||
|
|||
public static class EventOutboxMongoModelBuilderExtensions |
|||
{ |
|||
public static void ConfigureEventOutbox([NotNull] this IMongoModelBuilder builder) |
|||
{ |
|||
Check.NotNull(builder, nameof(builder)); |
|||
|
|||
builder.Entity<IncomingEventRecord>(b => |
|||
{ |
|||
b.CollectionName = AbpCommonDbProperties.DbTablePrefix + "EventOutbox"; |
|||
}); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue