示例#1
0
        public DataService(IDatabaseAccess databaseAccess, string collectionName, BsonClassMap <T> customClassMap)
        {
            BsonClassMap.RegisterClassMap(customClassMap);

            modelCollection = databaseAccess.GetCollection <T>(collectionName);
        }
示例#2
0
 public ProjectDataService(IDatabaseAccess databaseAccess) : base(databaseAccess.GetCollection <Project>("Projects"))
 {
 }
 public UserAccountDataService(IDatabaseAccess databaseAccess) : base(databaseAccess.GetCollection <UserAccount>("Users"))
 {
 }