Ejemplo n.º 1
0
 public EventClass()
 {
     GeneralClass      = new GeneralClass();
     HTMLCriteriaClass = new HTMLCriteriaClass();
     SQLClass          = new SQLClass();
     StartUpDefinitions();
 }
Ejemplo n.º 2
0
 void StartUpDefinitions()
 {
     GeneralClass      = new GeneralClass();
     HTMLCriteriaClass = new HTMLCriteriaClass();
     RequiredFolders   = GeneralClass.GetAppConfigStringArray("CustomAppSettingsForRequiredFolders");
     GeneralClass.CreateRequiredFolders(RequiredFolders, AppStartUpPath);
     dbClient         = new MongoClient(connectionString);
     db               = dbClient.GetDatabase("SahibindenMongoDatabase");
     advertCollection = db.GetCollection <BsonDocument>("AdvertCollection");
     searchCollection = db.GetCollection <BsonDocument>("SearchCollection");
 }