Model-Defined Functions are one of the great new features of EF4. The only downside is that it’s a little kludgey to call them from LINQ to Entities.
Jiri Cincura has a simple, but elegant workaround – the ever agile Extension Methods!
Model Defined Function as a method on entity (or on type for store function)
Sign up for my newsletter so you don't miss my conference & Pluralsight course announcements!