.net - Will LINQ to SQL Pick Up Trigger Changes/Errors? -
i'm not knowledgeable scope of sql operations , how relate linq sql. if have trigger updates field in record after inserted, happens when insert new record using linq sql? given order of operations:
- create new "myobject" instance.
- assign myobject properties.
- insert record using linq sql.
- sql insert trigger updates property of record new value.
would step 5 be:
"myobject" holds updated value.
or
"myobject" holds original value assigned it.
and question given same steps 1-3:
4.. sql trigger throws error , rolls insert, similar this example.
would step 5 be:
linq sql throws sql exception.
or
???
answers: 2 , 1
but it's worth testing because exception may depend on connection string params.
Comments
Post a Comment