-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAluno.pas
43 lines (32 loc) · 801 Bytes
/
Aluno.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
unit Aluno;
interface
uses
Aurelius.Mapping.Attributes, System.Generics.Collections;
type
[Entity]
[Table('Alunos')]
[Id('id', TIdGenerator.IdentityOrSequence)]
TAluno = class
private
FId: Integer;
FNome : String;
FMatricula : String;
FNota : Double;
public
[Column('id', [])]
property Id : Integer read FId write FId;
[Column('nome', [])]
property Nome : String read FNome write FNome;
[Column('matricula', [])]
property Matricula : String read FMatricula write FMatricula;
[Column('nota', [])]
property Nota : Double read FNota write FNota;
constructor Create(Nome: String); overload;
end;
implementation
{ TAluno }
constructor TAluno.Create(Nome: String);
begin
FNome := Nome;
end;
end.