Re: [Modeling-users] Execute arbitrary SQL within an EditingContext
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2003-07-15 11:33:10
|
Hi Matt, Matt Goodall <ma...@po...> wrote: > I realise this is sometimes a contentious issue for O/R mapping but is > there any way to execute arbitrary SQL within a transaction managed by > and EditingContext? >=20 > I've had a quick look through the API but cannot see any way of > getting hold of the underlying connection. It looks like I need to > obtain a DatabaseContext for my model but how do I do that? As far as I can read between the lines, you want to modify some data when an EC is saving changes, right? Could you be more explicit about what you'd like to do? There are numerous use-cases for such things, most of which have major drawbacks (and that's why it's considered contentious within ORMs, mainly). I'd prefer to discuss a particular use-case rather than discourse on generic cases that probably won't match your case ;) -- S=E9bastien. |