3.8. Creating the Primary Modules

    As our model for creating datasets, we will create the Customer dataset on the dCustomers datamodule:

    Figure 5. dCustomers datamodule

    We have placed the TFDQuery component in the datamodule and named it qryCustomers. This dataset will be referred to in the DataSet property of the DataSource data source in DCustomers. We specify the read-only transaction in the Transaction property, the trWritetransaction in the UpdateTransaction property and, for the Connection property, the connection located in the main data module. We populate the property with the following query: