Last active
March 29, 2019 06:47
-
-
Save oguzhankircali/405a1b513732e34b64578c1dfb63061c to your computer and use it in GitHub Desktop.
Calling user defined database functions in Entity Framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<MyClass> retval = db.Database.SqlQuery<MyClass>(String.Format(@”select * from dbo.fonksiyonum({0})”, id)).OrderBy(p => p.Sinif).ToList<MyClass>(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment