Spread onions and hash browns evenly in bottom of buttered dish. Put bread on top of hash browns. Distribute sausage over bread. Pour milk and egg mixture over entire casserole. Add parmesan and then the cheddar.