W
wdudek
Not sure if this is the best place to post this, but I didn't see any linq
specific forums. Anyway, I'm using DLINQ to insert records into a database,
which works great. However for our security before I do this I also need to
execute a stored procedure, and was wondering if there was any event, partial
method, etc that I can hook into to execute the stored proc whenever a
connection to the datbase is opened. I see the procedure partial void
InsertOrderComment, but would like a more generic proc so that in the future
when the dbml does more than just one function I do not have to write
duplicate code. I will play with this, but does anyone know if the OnCreated
method fires after the connection is established in the data context?
Thanks,
Bill
specific forums. Anyway, I'm using DLINQ to insert records into a database,
which works great. However for our security before I do this I also need to
execute a stored procedure, and was wondering if there was any event, partial
method, etc that I can hook into to execute the stored proc whenever a
connection to the datbase is opened. I see the procedure partial void
InsertOrderComment, but would like a more generic proc so that in the future
when the dbml does more than just one function I do not have to write
duplicate code. I will play with this, but does anyone know if the OnCreated
method fires after the connection is established in the data context?
Thanks,
Bill