I am working with EntityFramework 5, .NET 4.5 C#. I want to add custom SQL to the Member DBset. I want to be able to select by Name and Surname using the following statement
RosteringDBContainer db = new RosteringDBContainer();
var results = db.Members.Select("dave", "davidson"); //first name and surname
This should execute the SQL:
SELECT *
FROM Member
WHERE Name='{0}'
AND Surname='{1}';
I know that i can do this using extension methods and db.Members.Execute("SQL Here");, i just want to know if there is some more explicit way of doing this.
