CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

CSLA Connection Management and EF Code First

rated by 0 users
Answered (Verified) This post has 1 verified answer | 5 Replies | 1 Follower

Top 500 Contributor
20 Posts
Joseph Morin posted on Wed, Jun 27 2012 9:58 AM

I've been reading up on the connection management.  I may be missing something, but I am wondering if CSLA performs connection management with EF with Code First.  I have used ObjectContextManager with the EDMX style EF, but I don't believe it is compatible.

 

  (We're developing new, so we are using the latest EF (4.3) and CSLA (4.3.12) framework.)

Answered (Verified) Verified Answer

Top 10 Contributor
1,772 Posts
Answered (Verified) JonnyBee replied on Wed, Jun 27 2012 10:18 AM
Verified by Joseph Morin

Hi,

The DbContextManager is checked in for Csla 4.5. You may add this to your own assembly. 

Jonny Bekkum, Norway CslaContrib Coordinator

All Replies

Top 10 Contributor
1,772 Posts
Answered (Verified) JonnyBee replied on Wed, Jun 27 2012 10:18 AM
Verified by Joseph Morin

Hi,

The DbContextManager is checked in for Csla 4.5. You may add this to your own assembly. 

Jonny Bekkum, Norway CslaContrib Coordinator

Top 500 Contributor
20 Posts

Can I include the DbContextManager only and easily or should I consider using Csla 4.5.  I'm hesitant on using 4.5 as it is not a stable release.

Top 10 Contributor
1,772 Posts
JonnyBee replied on Wed, Jun 27 2012 11:12 AM

You can include the DbContextManager only (and maybe add some recources if new entries was added).

You must also add reference to EF 4.1 (or newer - where DbContext was intrduced).

Jonny Bekkum, Norway CslaContrib Coordinator

Top 500 Contributor
20 Posts

I've added only the DbContextManager and it appears to be compiling fine.  There doesn't appear to be any .Net 4.5 or Csla 4.5 calls in it.  I will update if there are any problems.

Top 10 Contributor
1,772 Posts
JonnyBee replied on Wed, Jun 27 2012 12:57 PM

Hi,

That is correct - the code is plain C# 4.0 and only requires reference to EntityFramework assembly.

Jonny Bekkum, Norway CslaContrib Coordinator

Page 1 of 1 (6 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems