Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.?

like image 688
Ralph Shillington Avatar asked Dec 17 '10 11:12

Ralph Shillington


1 Answers

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.

like image 61
Joe Albahari Avatar answered Oct 11 '22 04:10

Joe Albahari