I have web app written in c#. It's consisted of three projects. Two of them are asp.net mvc projects and one of them is a simple project with only classes which I use in the two mvc projects. So, the two mvc apps reference the third project.
I have a static method in the non-mvc project which basically does this: it has two input parameters: string text, MyEntities db. MyEntities is an instance of my database, the .edmx file.
Inside the method, I parse the text, divide it into separate lines, get a part of them. For that part, depending on the user, I check if there is a record in db.tblToy with that name.
For every user there is a different db. So, I take the user_id and according to that, I search in the according db, in the tblToy table. By dangerous I mean, if the method returns incorrect results. For example, for user1 it will check in the db for user2, because it's static.
That method is static. I don't call it with a class instance. My question is this: is it of any danger that this method is static?