1234567891011121314151617181920212223242526272829303132333435363738 |
- using Abp.Dependency;
- using Abp.ObjectMapping;
- using MongoDB.Bson;
- using System;
- using Yunda.ISAS.MongoDB.Entities.DataMonitoring;
- using YunDa.ISAS.MongoDB.Repositories;
- namespace Yunda.ISAS.DataMonitoringServer.DataCenter
- {
- public class DataRepository : ISingletonDependency
- {
- public IMongoDbRepository<TeleAlarmResult, Guid> TeleAlarmResultRepository { get; }
- public IMongoDbRepository<TelemeteringResult, Guid> TelemeteringResultRepository;
- public IMongoDbRepository<TelemeteringHourStatisticsResult, Guid> TelemeteringHourStatisticsResultRepository { get; }
- public IMongoDbRepository<TelesignalisationResult, Guid> TelesignalisationResultRepository { get; }
- public IMongoDbRepository<TelecommandResult, Guid> TelecommandResultRepository { get; }
- public IMongoDbRepository<BsonDocument, Guid> BsonDocumentResultRepository { get; }
- [Obsolete("无法使用的")]
- public IObjectMapper ObjectMapper { get; }
- public DataRepository(IMongoDbRepository<TeleAlarmResult, Guid> teleAlarmResultRepository
- , IMongoDbRepository<BsonDocument, Guid> bsonDocumentResultRepository
- , IMongoDbRepository<TelemeteringResult, Guid> telemeteringResultRepository
- , IMongoDbRepository<TelemeteringHourStatisticsResult, Guid> telemeteringHourStatisticsResultRepository
- , IMongoDbRepository<TelesignalisationResult, Guid> telesignalisationResultRepository
- , IMongoDbRepository<TelecommandResult, Guid> telecommandResultRepository
- , IObjectMapper objectMapper)
- {
- TeleAlarmResultRepository = teleAlarmResultRepository;
- TelemeteringResultRepository = telemeteringResultRepository;
- TelemeteringHourStatisticsResultRepository = telemeteringHourStatisticsResultRepository;
- TelesignalisationResultRepository = telesignalisationResultRepository;
- TelecommandResultRepository = telecommandResultRepository;
- BsonDocumentResultRepository = bsonDocumentResultRepository;
- ObjectMapper = objectMapper;
- }
- }
- }
|