Object reference not set to an instance of an object.

  • 27 Views
  • Last Post 2 weeks ago
prem posted this 3 weeks ago

  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 2 weeks ago

Please help me any one.

Close