Object reference not set to an instance of an object.

  • 46 Views
  • Last Post 14 July 2017
prem posted this 13 July 2017

  if (_objectContext.Connection.State != ConnectionState.Open)

            {

                _objectContext.Connection.Open();

                _transaction = _objectContext.Connection.BeginTransaction();

            }

getting error on Object reference not set to an instance of an object in the first line, please me to fix this issue

in UnitofWork.cs file

prem posted this 14 July 2017

Please help me any one.

Close