-
Thanks Rocky! I'll take a look at this and let you know what I find out ...
-
In VS2010 my MSTest tests run just fine. When running in VS2012 I am getting an error. The test sets the Csla.ApplicationContext.User with a Custom Business Principal. When EntityFramework is asked to provide a new ObjectContext I receive a SerializationException saying that my Custom Business Principal type cannot be found. So far all tests that use
-
Just me being silly ... will leave this up in case someone else runs into this issue ... but the fix was simply ... apiTokenEditList = apiTokenEditList.Save();
-
I am trying to creating an EditableRootList object a BusinessListBase<EditableRootList, EditableChild> ... Everything seems to work ... but when I call Save, new objects are still marked as new ... I have the following code in my EditableRootList for handling the updates ... [Csla. Transactional (Csla. TransactionalTypes .TransactionScope)] protected
-
K ... so pulling that out looks like it is going to take some work, to be honest, a bit over my head ... what would I really lose if I just used ctx = new MyEntities(MyConnectionString)? We aren't using transactions (though we might in the future for Units of Work) Presentation layers communicate via JSON with a WEB API service that works with CSLA
-
Hey Jonny ... where in the book can I read about the lifecycle? Just want to have a clearer understanding.
-
Some more background ... we are using a RESTful service which works with our CSLA library and passes back JSON/XML to the user. So just trying to wrap my mind around how long a database connection lives in the context of a web service call. Does it exist for the life of the web service or just the call? We are really looking for the connection to just
-
Thanks for the response Jonny! Do you know of any examples where someone has written a CustomObjectManager or extracted it?
-
The problem with extracting it is that it uses ApplicationContext, IMobileObject and SerializationInfo. So not sure how simple it is going to be.
-
Our DAL has a reference to CSLA, just to leverage the ObjectContextManager. I realize that this class is used to manage the connections to EF from a CSLA application. I would like to eliminate this dependence on the ObjectContextManager, and either write my own, or just use the context for my EF entities. Just wondering what kind of trouble I would