Click here to Skip to main content
15,076,130 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can we use view with LINQ to SQL / Entity Framework ?
Posted
Comments
Sampath Lokuge 17-Dec-13 8:01am
   
Your question is not clear. Plz provide more info.
Neeraj Kumar7 18-Dec-13 1:48am
   
It's DataBase view created from a table in SQL 2005.
TryAndSucceed 17-Dec-13 10:39am
   
Did you mean MVC View?
Neeraj Kumar7 18-Dec-13 1:48am
   
It's DataBase view created from a table in SQL 2005.
Alexander Dymshyts 18-Dec-13 9:00am
   
Why do you want to use LINQ to SQL and not LINQ to enteties? Anyway, answer is yes, we can.
Neeraj Kumar7 19-Dec-13 2:20am
   
Thanks Alexander.

1 solution

Yes, you can. For that you need to add in your project ADO.NET Entity Data Model. While adding it you need to choose some names etc. After creation you can use Linq To SQL with your database view or tables, if you want to. Also this link will help you.
Hope this will help you.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900