I am using EntLib 4.1.
_db = DatabaseFactory.CreateDatabase("DbName");
DbCommand dbCommand = _db.GetStoredProcCommand("someProcedure");
_db.AddInParameter(dbCommand, "Id", DbType.Int32, id);
result = _db.ExecuteNonQuery(dbCommand);
After performing the task do I need to dispose the _db object, like:
finally
{
_db = null;
}
... or will EntLib Framework handle it automatically?