LinqPad ChangesNames
I'm working through my first query with LinqPad. It's a connection to a SQl Server database from one of our vendors. I'm using a table called Employee in SQL Server, but I notice that LinqPad calls it Employees plural. There is a primary key field in the table I need for linking that is also called Employee, but LinqPad calls it Content.
What is going on here? Do I have to modify all my queries after I development in LinqPad because it didn't like the field names?
Bernie
What is going on here? Do I have to modify all my queries after I development in LinqPad because it didn't like the field names?
Bernie
Comments
When conflicts occur, LINQPad uses heuristics to rename columns, and also to determine association names. These won't also be the same as the heuristics that Visual Studio's LINQ-to-SQL and Entity Framework designers use. If you need compatibility with a typed data context that you've created in VS, you can click the option to connect to a typed data context in your own assembly.
How do I do this?
If you're using Entity Framework, a tutorial is here:
http://www.linqpad.net/EntityFramework.aspx
What do you right-click?