6. At a computer system including a processor and system memory, a method for generating a Web based user-interface for interacting with a database, the method comprising: an act of accessing a schema that defines a plurality tables in the database, the schema also defining relationships between fields in the plurality of tables of the database, definition of field relationships by the schema including defining a foreign key relationship from a first table to a second table of the database indicative of a key field in the first table identifying records in the second table; an act of converting the schema, including the foreign key relationship, into source code, the source code including classes and subclasses that represent relationships between the plurality of tables and fields defined in accordance with the schema; annotating the source code with a metadata annotation representing the foreign key relationship from the first table to the second table, the metadata annotation indicating the basis for creation of any classes or subclasses based on the foreign key relationship indicative of a key field in the first table identifying records in the second table; an act of generating executable code from the source code, including: compiling classes and subclasses of the source code into executable code of a dynamic link library, the executable code obscuring any indication of the relationships between the plurality of tables and fields in the database in the source code; and retaining the metadata annotations from the source code in the executable code of the dynamic link library, including a metadata annotation representing the foreign key relationship indicative of a key field in the first table identifying records in the second table; an act of identifying the metadata annotations from within the executable code of the dynamic link library, including the metadata annotation representing the foreign key relationship indicative of a key field in the first table identifying records in the second table, for use in creating a database mapping for the database; an act of the processor creating a database mapping for the database from the identified metadata annotations the database mapping describing the configuration of the database such that the database mapping is based on the schema and retains an indication of the foreign key relationship indicative of a key field in the first table identifying records in the second table in a format processable by a Web site generator; an act of automatically formulating a dynamic query configured to query a database table included in the database, the dynamic query being executable in response to a user initiated command to change the arrangement of records from the database table within a Web based form, the dynamic query configured to request records from the first table that are to be presented in the Web based form in the order they are to be presented such that the entire database table need not be queried, the dynamic query for implementing one of: a pagination query, an addition query, a deletion query, and a modification query; and an act of automatically generating a Web site for the database in accordance with the database mapping, the Web site including a link for executing the automatically formulated dynamic query so as to allow users to query the database to automatically change the arrangement of records from the database presented at the Web site, the Web site including at least one navigable link from the second table back to the first table, the at least one navigable link implementing the inferred relationship from the second table back to the first table based on the metadata annotation representing the foreign key relationship indicative of a key field in the first table identifying records in the second table.
10. The method as recited in claim 6 , wherein the act of automatically formulating a dynamic query configured to query a database table comprises an act formulating a dynamic query for paging through records in the database table.