mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
661 B
20 lines
661 B
using MongoDB.Driver;
|
|
using Volo.Abp.Data;
|
|
using Volo.Abp.MongoDB;
|
|
using Volo.Abp.MongoDB.DistributedEvents;
|
|
|
|
namespace DistDemoApp
|
|
{
|
|
[ConnectionStringName("Default")]
|
|
public class TodoMongoDbContext : AbpMongoDbContext, IHasEventOutbox, IHasEventInbox
|
|
{
|
|
public IMongoCollection<TodoItem> TodoItems => Collection<TodoItem>();
|
|
public IMongoCollection<TodoSummary> TodoSummaries => Collection<TodoSummary>();
|
|
|
|
public IMongoCollection<OutgoingEventRecord> OutgoingEvents => Collection<OutgoingEventRecord>();
|
|
|
|
public IMongoCollection<IncomingEventRecord> IncomingEvents => Collection<IncomingEventRecord>();
|
|
}
|
|
|
|
}
|