public DataService(IDatabaseAccess databaseAccess, string collectionName, BsonClassMap <T> customClassMap) { BsonClassMap.RegisterClassMap(customClassMap); modelCollection = databaseAccess.GetCollection <T>(collectionName); }
public ProjectDataService(IDatabaseAccess databaseAccess) : base(databaseAccess.GetCollection <Project>("Projects")) { }
public UserAccountDataService(IDatabaseAccess databaseAccess) : base(databaseAccess.GetCollection <UserAccount>("Users")) { }