I heard Beit HaKnessiot and Medrashot have certain laws like you can't eat or sleep inside a Beit Knesset, for example, and others for Beit Medrash.
Now I heard our synagogue is like a Beit HaMedrash that was not built with the intention to be a Beit Knesset or Beit Medrash, because it was originally built as a garage. Now we pray and learn in it.
So how does a place that wasn't build to be a Beit Knesset or Beit Medrash assume the status of a Beit HaKnesset or Beit HaMedrash where all these laws apply? And what if you don't add anything to the structure like any renovations or add any decorations? Do you have to go inside and declare "This place is a Beit HaKnesset or Beit Medrash", or does it assume its status by the actions you do inside, like praying or learning more than 3 times?