I have a snippet of LINQ code that I need to use in a lot of queries
let catchmentId = Convert.ToInt32( phy.PhysicalProperty_binData.Substring(offset + 3
You can map custom SQL functions in your Entity model.
http://msdn.microsoft.com/en-us/library/dd456812(v=vs.103).aspx