2. Open the ADO.NET Entity Data Model fi le PlanetWrox.edmx from the App_Code folder, rightclick an empty space in the designer, and choose Update Model from Database. Wait until VS has analyzed your database and click Finish. The UserName column in the database now shows up as a property of the PhotoAlbum class (see Figure 17-10).
Save your changes and close the file.
3. Open the Web.config fi le, and below the existing elements, add the following two elements to block access to the two referenced files for anonymous users: