Answered by:
Entity framework

Question
-
If I use entity framework, can I use only linq or lambda expression as well?Sunday, August 3, 2014 3:23 PM
Answers
-
Lambda expressions are used, and are particularly helpful, for writing LINQ query expressions so you can certainly use LINQ and lamda expressions together with each other: http://msdn.microsoft.com/en-us/library/bb397687.aspx.
You typically use LINQ-to-Entities when you write queries against the Entity Framework conceptual model: http://msdn.microsoft.com/en-us/library/vstudio/bb386964(v=vs.100).aspx.
Please refer to the following links for more information:
How To Work With LinQ C# Lambda Expression: http://codesamplez.com/programming/linq-lambda-expression-tutorial-c-sharp
Queries in LINQ to Entities: http://msdn.microsoft.com/en-us/library/vstudio/bb399367(v=vs.100).aspx- Proposed as answer by Ioana Vasilescu Sunday, August 3, 2014 5:55 PM
- Marked as answer by Amy PengMicrosoft employee Monday, August 11, 2014 2:07 AM
Sunday, August 3, 2014 5:42 PM -
Hi,
Yes, as @Magnus said that if we use the entity framework, we can use linq or lambda expression as well.
Then since this forum is used to discuss the question about the Windows Communication Foundation, Serialization, and Networking, if you have any questions about the Entity Framework, then it will be better for you to post it to the Entity Framework forum, after that you will get good replies from the Entity Framework experts.#Entity Framework Forum:
http://forums.asp.net/1227.aspx.
Thanks for your understanding.Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Edited by Amy PengMicrosoft employee Monday, August 4, 2014 11:06 AM
- Marked as answer by Amy PengMicrosoft employee Monday, August 11, 2014 2:07 AM
Monday, August 4, 2014 11:06 AM
All replies
-
Lambda expressions are used, and are particularly helpful, for writing LINQ query expressions so you can certainly use LINQ and lamda expressions together with each other: http://msdn.microsoft.com/en-us/library/bb397687.aspx.
You typically use LINQ-to-Entities when you write queries against the Entity Framework conceptual model: http://msdn.microsoft.com/en-us/library/vstudio/bb386964(v=vs.100).aspx.
Please refer to the following links for more information:
How To Work With LinQ C# Lambda Expression: http://codesamplez.com/programming/linq-lambda-expression-tutorial-c-sharp
Queries in LINQ to Entities: http://msdn.microsoft.com/en-us/library/vstudio/bb399367(v=vs.100).aspx- Proposed as answer by Ioana Vasilescu Sunday, August 3, 2014 5:55 PM
- Marked as answer by Amy PengMicrosoft employee Monday, August 11, 2014 2:07 AM
Sunday, August 3, 2014 5:42 PM -
Hi,
Yes, as @Magnus said that if we use the entity framework, we can use linq or lambda expression as well.
Then since this forum is used to discuss the question about the Windows Communication Foundation, Serialization, and Networking, if you have any questions about the Entity Framework, then it will be better for you to post it to the Entity Framework forum, after that you will get good replies from the Entity Framework experts.#Entity Framework Forum:
http://forums.asp.net/1227.aspx.
Thanks for your understanding.Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Edited by Amy PengMicrosoft employee Monday, August 4, 2014 11:06 AM
- Marked as answer by Amy PengMicrosoft employee Monday, August 11, 2014 2:07 AM
Monday, August 4, 2014 11:06 AM