Prepare pie dough as directed in recipe. Roll half of the dough out to fit a 9-inch deep pie-plate. Ste prepared crust and remaining dough aside. Preheat oven to 350 degrees F. Filling: Brown sausage. In a bowl combine corn, sausage, onion, flour, salt, and pepper. Mix well. Spoon into prepared pie crust. Cut butter in pieces and dot over top of the corn mixture. Roll out remaining dough to fit the top of the pie. Crimp pie crust edges together. Brush the top of the crust with beaten egg. Cut slits in the crust. Place pie into the oven. Bake for 45 minutes or until crust is well browned. Remove pie form the oven. Allow to cool for 10 minutes before serving. Serves 6-8.