Home

Linqpad with EF 6 Code First

I have just downloaded the latest version of LinqPad. I chose a typed data context from my own assembly and selected the assembly and the config file from the project that contained the DbContext. Hitting the [Test] button was successful. The database explorer pane filled with the names of all the expected tables.

Entering "this" gave me grids for all the POCOs for which a DbSet had been created in the DbContext assembly. Other classes can be discovered by EF6 and therefore I had not created DbSets for them. Unfortunately LinqPad cannot discover those classes and attempts to use them in LinqPad will fail. By adding the missing DbSet()s LinqPad then works fine.

Are there any plans to add this discovery feature in future versions of LinqPad or should we change our coding standards if we are to use LinqPAd successfully? Apart from this I am truly impressed by the product.

Comments

Sign In or Register to comment.