home *** CD-ROM | disk | FTP | other *** search
- unit dpoEmployee;
-
- interface
-
- uses
- dpoBase, Classes, Db, DBTables;
-
- type
- TEmployee = class(TDataObject)
- private
- public
- constructor Create(aDB: TDatabase); override;
- end;
-
- implementation
-
- {$R *.DFM}
-
- { TEmployee }
-
- constructor TEmployee.Create(aDB: TDatabase);
- begin
- inherited Create(aDB);
- { Inform the base class of the field(s) that comprise the OID }
- OIDFieldNames.Text := 'EmpNo';
- end;
-
- initialization
- RegisterClass(TEmployee);
- end.
-