Search code examples
entity-frameworkcode-firstlinqpad

Is it possible to use LinqPad with a code-first model


In the past It's been easy to set a connection in LinqPad to a custom assembly that had EF model. Linqpad looks for a that is based on System.Data.Objects.ObjectContext which doesn't exist

How (if at all) does one make their model assembly compatible with LinqPad.?


Solution

  • Right now, LINQPad does not support the EF CTP's code-first: there's a feature request here.

    It's almost certain that support will be added in the future - if this EF feature makes it past CTP (and maybe sooner with sufficient demand).

    Edit: LINQPad now supports code-first with EF 4.1.