i am designing a project in asp.net mvc3, i have designed database in sql server, and i added this in App_Data using ADO.net connection.
this is my ProductFormulation Table

and this is my RawMaterial table

now i want to get Code from RawMaterial table where ProductID=1 in ProductFormulation.
please tell me what query should i write. I am using Razor view engine.
should get you where you need to go