Click or drag to resize

DbContextDoInConnection Method

Overload List
  NameDescription
Public methodStatic memberCode exampleDoInConnection(DbContextActionWithNoResult)
Execute an action which doesn't return a value. If no current connection exists, it will establish a connection to the customer database and close it afterwards. An existing connection will be reused. Inside the action, the connection is available as Connection.
Public methodStatic memberCode exampleDoInConnectionT(DbContextActionWithResultT)
Execute an action and return the result. If no current connection exists, it will establish a connection to the customer database and close it afterwards. An existing connection will be reused. Inside the action, the connection is available as Connection.
Top
See Also