> Can you forsee any issues that may crop up with me calling Flush before
> calling this external DLL, then continuing my nhibernate changes after
> calling it?
As your external dll is talking directly to the database, then doing a
flush before calling the DLL seems like a good idea to me.
I think calling flush should not commit your transaction so if you
detect issues from the external code you should be able to rollback.
What I don't like here, however, is the way you're running two
separate database connections in parallel - one for hibernate and one
for the legacy code.
if you were to refactor the legacy code, the fist thing I'd do is wire
in a way to inject an open connection and transaction so the the leacy
code and the new code all
operate on the same db transaction.
Another possiblity is that they are using the same connection which is
why you're getting these issues with the two sets of code interfereing
with each other.
what does DatabaseConnection.JobProcessConnection() do to give you a
db connection?
I see your hibernate code has this:
ConnectionString(c =>c.FromAppSetting("connectionString"))
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.