New Posts New Posts RSS Feed: Generating DbContext for Breeze from existing EDMX
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Generating DbContext for Breeze from existing EDMX

 Post Reply Post Reply
Author
willtcarey View Drop Down
Newbie
Newbie


Joined: 01-Oct-2012
Posts: 3
Post Options Post Options   Quote willtcarey Quote  Post ReplyReply Direct Link To This Post Topic: Generating DbContext for Breeze from existing EDMX
    Posted: 16-Jan-2013 at 7:06am
Hi there, we have a EDMX file that represents our database, and when using the code generation tools we get an EntityManager from that. However Breeze is looking for a DbContext to create an EFContextProvider. I've been looking around and it seems that DevForce claims to generate a DbContext at runtime, is there any way I can reference that to use in Breeze or am I stuck creating a custom DbContext?

Any help would be appreciated. Thanks
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jan-2013 at 8:18am
Breeze doesn't currently integrate with DevForce.  There's currently a feature request to add this, which you can vote on here - http://breezejs.uservoice.com/forums/173093-breeze-feature-suggestions/suggestions/3387673-support-devforce-models-.
 
You can use Breeze with your existing EDMX and standard EF, though.  Here's more info - http://www.breezejs.com/documentation/hosting-aspnet.
 
Back to Top
willtcarey View Drop Down
Newbie
Newbie


Joined: 01-Oct-2012
Posts: 3
Post Options Post Options   Quote willtcarey Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jan-2013 at 8:25am
Ok, we have a plan to gradually phase out DevForce and gradually put in Breeze in it's place. You're telling me there is no way to run DevForce and Breeze concurrently? I've seen talk about writing a custom DbContext, would that help me at all?

Edited by willtcarey - 16-Jan-2013 at 8:27am
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jan-2013 at 8:33am
You can certainly run Breeze and DevForce concurrently.   Breeze won't currently recognize your DevForce model and DevForce server-side code, so if you'd like to see that functionality please vote on it at the UserVoice link above. 
 
The Breeze support forum, which is quite active and should be able to better answer your questions, is here - http://stackoverflow.com/questions/tagged/breeze?sort=newest.
Back to Top
willtcarey View Drop Down
Newbie
Newbie


Joined: 01-Oct-2012
Posts: 3
Post Options Post Options   Quote willtcarey Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jan-2013 at 11:09am
Ah ok, I see what you mean. We wound up going with a separate project to which generated entity framework models for us. Thanks for your help!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down