1) projDeanOfficeEcoSpace Delphi (. 8.6). . . UML.
8.6
2) BdpConnection Borland Data Provider, , .
3) . DeOffDB.gbd .
4) ConnectionString BdpConnection IBConn1.
5) MDA . ( ) , PersistenceMapper. , . PersistenceMapperBdp Enterprise Core Objects. , BDP.NET. projDeanOfficeEcoSpace BdpConnection1 ( BdpConnection).
6) PersistenceMapperBdp Connection BdpConnection1 (. 8.7). PersistenceMapperBdp . , PersistenceMapperBdp , MDA .
8.7 ECO
7) . PersistenceMapperBdp , . . PersistenceMapperBdp , . Interbase Interbase [dialect3] setup, Microsoft SQL Server SQL Server setup . Interbase [dialect3] setup, Firebird 2.0 (. 8.8).
8.8
8) , . Generate Schema , . , (. 8.9).
9) Delphi . , , . .
|
|
10) PersistenceMapperBdp, , . projDeanOfficeEcoSpace. PersistenceMapper Properties PersistenceMapperBdp1 ( PersistenceMapperBdp). .
8.9
( ) . , , . Delphi, .
1) WinForm ( Design). . wfMain, TWinForm TMain Name Design. Text ( Appearance) , , . , MDI-.
2) IsMdiContainer ( Window Style) True.
3) File > New > Other. ECO Enabled Windows Form New ECO Files ( Delphi for.NET Projects). . . , wfLecturer, TLecturer. Text .
4) . MainMenu. , . , . . (. 8.10).
8.10
5) wfLecturer, Code. . implementation , :
var
callLect: TLecturer;
6) . , wfLecturer File > Use Unit. Use Unit wfLecturer (). :
callLect:= TLecturer.Create(EcoSpace);
callLect.MdiParent:= self;
callLect.Show;
7) . (. 8.11).
8.11
|
|
8) . DataGrid Data Controls. dgChair ( Name). (clChair). . CaptionText ( ) .
9) dgLecturer, (clLecturer). CaptionText .
10) : ECO . . Button (. 8.12).
8.12
11) . Anchor . Top, Left, Right Anchor, Top, Bottom, Left, Right, Button1-Button4 Top, Right, Button5 Bottom, Right.