Binding
Nicolas MAYE 2 years ago
commit c0147b504e

@ -69,7 +69,7 @@ CREATE TABLE Echeancier
methodePayement varchar(20), methodePayement varchar(20),
isDebit boolean, isDebit boolean,
tag varchar(30), tag varchar(30),
CONSTRAINT ck_methEch CHECK (methodePayement IN ('Cb','Esp','Chq','Vir','Pre', 'None')), CONSTRAINT ck_methEch CHECK (methodePayement IN ('None','CB','Espece','Cheque','Virement', 'Prevelement')),
CONSTRAINT ck_tagEch CHECK (tag IN ('Alimentaire','Carburant','Habitation','Energie','Telephonie','Loisir','Restauration','Divers','Transport','Transaction','Santé')), CONSTRAINT ck_tagEch CHECK (tag IN ('Alimentaire','Carburant','Habitation','Energie','Telephonie','Loisir','Restauration','Divers','Transport','Transaction','Santé')),
FOREIGN KEY(compte) REFERENCES Compte(id) FOREIGN KEY(compte) REFERENCES Compte(id)
); );
@ -85,7 +85,7 @@ CREATE TABLE Operation
isDebit boolean, isDebit boolean,
fromBanque boolean, fromBanque boolean,
tag varchar(30), tag varchar(30),
CONSTRAINT ck_methOpe CHECK (methodePayement IN ('Cb','Esp','Chq','Vir','Pre', 'None')), CONSTRAINT ck_methOpe CHECK (methodePayement IN ('None','CB','Espece','Cheque','Virement', 'Prevelement')),
CONSTRAINT ck_tagOpe CHECK (tag IN ('Alimentaire','Carburant','Habitation','Energie','Telephonie','Loisir','Restauration','Divers','Transport','Transaction','Santé')), CONSTRAINT ck_tagOpe CHECK (tag IN ('Alimentaire','Carburant','Habitation','Energie','Telephonie','Loisir','Restauration','Divers','Transport','Transaction','Santé')),
FOREIGN KEY(compte) REFERENCES Compte(id) FOREIGN KEY(compte) REFERENCES Compte(id)
); );
@ -100,7 +100,7 @@ CREATE TABLE Planification
methodePayement varchar(20), methodePayement varchar(20),
isDebit boolean, isDebit boolean,
tag varchar(30), tag varchar(30),
CONSTRAINT ck_methPla CHECK (methodePayement IN ('Cb','Esp','Chq','Vir','Pre', 'None')), CONSTRAINT ck_methPla CHECK (methodePayement IN ('None','CB','Espece','Cheque','Virement', 'Prevelement')),
CONSTRAINT ck_tagPla CHECK (tag IN ('Alimentaire','Carburant','Habitation','Energie','Telephonie','Loisir','Restauration','Divers','Transport','Transaction','Santé')), CONSTRAINT ck_tagPla CHECK (tag IN ('Alimentaire','Carburant','Habitation','Energie','Telephonie','Loisir','Restauration','Divers','Transport','Transaction','Santé')),
FOREIGN KEY(compte) REFERENCES Compte(id) FOREIGN KEY(compte) REFERENCES Compte(id)
); );

@ -23,12 +23,12 @@ namespace Model
public TagOperation Tag { get; private set; } public TagOperation Tag { get; private set; }
[JsonConstructor] [JsonConstructor]
public Echeance(string nom, double montant, DateTime dateOperation, MethodePayement modePayement, TagOperation tag, bool isDebit = true) public Echeance(string nom, double montant, DateTime dateOperation, MethodePayement methodePayement, TagOperation tag, bool isDebit = true)
{ {
Nom = nom; Nom = nom;
Montant = montant; Montant = montant;
DateOperation = dateOperation; DateOperation = dateOperation;
ModePayement = modePayement; ModePayement = methodePayement;
IsDebit = isDebit; IsDebit = isDebit;
Tag = tag; Tag = tag;
} }

@ -38,12 +38,12 @@ namespace Model
public bool FromBanque { get; private set; } public bool FromBanque { get; private set; }
[JsonConstructor] [JsonConstructor]
public Operation(string nom, double montant, DateTime dateOperation, MethodePayement modePayement, TagOperation tag, bool fromBanque, bool isDebit=true) public Operation(string nom, double montant, DateTime dateOperation, MethodePayement methodePayement, TagOperation tag, bool fromBanque, bool isDebit=true)
{ {
Nom = nom; Nom = nom;
Montant = montant; Montant = montant;
DateOperation = dateOperation; DateOperation = dateOperation;
ModePayement = modePayement; ModePayement = methodePayement;
IsDebit = isDebit; IsDebit = isDebit;
Tag = tag; Tag = tag;
FromBanque = fromBanque; FromBanque = fromBanque;

@ -24,12 +24,12 @@ namespace Model
public TagOperation Tag { get; private set; } public TagOperation Tag { get; private set; }
[JsonConstructor] [JsonConstructor]
public Planification(string nom, double montant, DateTime dateOperation, MethodePayement modePayement, TagOperation tag, bool isDebit = true) public Planification(string nom, double montant, DateTime dateOperation, MethodePayement methodePayement, TagOperation tag, bool isDebit = true)
{ {
Nom = nom; Nom = nom;
Montant = montant; Montant = montant;
DateOperation = dateOperation; DateOperation = dateOperation;
ModePayement = modePayement; ModePayement = methodePayement;
IsDebit = isDebit; IsDebit = isDebit;
Tag = tag; Tag = tag;
} }

Loading…
Cancel
Save