2 writes to _connection
System.Data.Entity (2)
System\Data\Objects\ObjectContext.cs (2)
234
_connection
= connection;
1814
_connection
= null; // Marks this object as disposed.
25 references to _connection
System.Data.Entity (25)
System\Data\Objects\ObjectContext.cs (25)
236
_connection
.StateChange += ConnectionStateChange;
290
if (
_connection
== null)
295
return
_connection
;
1402
if (
_connection
== null)
1419
if ((
_connection
.State == ConnectionState.Closed) || (
_connection
.State == ConnectionState.Broken))
1422
_connection
.State == ConnectionState.Closed ? System.Data.Entity.Strings.EntityClient_ConnectionStateClosed : System.Data.Entity.Strings.EntityClient_ConnectionStateBroken);
1434
Debug.Assert(ConnectionState.Open ==
_connection
.State, "Connection must be open.");
1472
_connection
.EnlistTransaction(currentTransaction);
1499
_connection
.EnlistTransaction(currentTransaction);
1513
_connection
.Close();
1514
_connection
.Open();
1563
if (
_connection
== null)
1593
if (
_connection
== null)
1598
MetadataWorkspace connectionWorkspace =
_connection
.GetMetadataWorkspace();
1674
if (
_connection
== null)
1679
MetadataWorkspace connectionWorkspace =
_connection
.GetMetadataWorkspace(false /* initializeAllConnections */);
1804
if (
_connection
!= null)
1806
_connection
.StateChange -= ConnectionStateChange;
1811
_connection
.Dispose();
3197
DbCommand command = this.
_connection
.StoreConnection.CreateCommand();
3205
EntityTransaction entityTransaction = this.
_connection
.CurrentTransaction;
3264
DbConnection storeConnection = this.
_connection
.StoreConnection;
3275
DbConnection storeConnection = this.
_connection
.StoreConnection;
3286
DbConnection storeConnection = this.
_connection
.StoreConnection;