|
|
|
@ -820,5 +820,132 @@ namespace EPAServeur.Context |
|
|
|
|
|
|
|
|
|
this.SaveChanges(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void AjouterNotes() |
|
|
|
|
{ |
|
|
|
|
Note note; |
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 1, |
|
|
|
|
Titre = "Titre1", |
|
|
|
|
Texte = "Texte1", |
|
|
|
|
IdAuteur = "ecf528c3-e509-402f-87bb-c8821467e350", |
|
|
|
|
IdCollaborateur = "779bf1cf-4d38-48fb-8550-3d583384523b", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 2, |
|
|
|
|
Titre = "Titre2", |
|
|
|
|
Texte = "Texte2", |
|
|
|
|
IdAuteur = "ecf528c3-e509-402f-87bb-c8821467e350", |
|
|
|
|
IdCollaborateur = "779bf1cf-4d38-48fb-8550-3d583384523b", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 3, |
|
|
|
|
Titre = "Titre3", |
|
|
|
|
Texte = "Texte3", |
|
|
|
|
IdAuteur = "ecf528c3-e509-402f-87bb-c8821467e350", |
|
|
|
|
IdCollaborateur = "779bf1cf-4d38-48fb-8550-3d583384523b", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 4, |
|
|
|
|
Titre = "Titre4", |
|
|
|
|
Texte = "Texte4", |
|
|
|
|
IdAuteur = "ecf528c3-e509-402f-87bb-c8821467e350", |
|
|
|
|
IdCollaborateur = "006226f6-51b2-4a02-a302-7447f7fccc04", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 5, |
|
|
|
|
Titre = "Titre5", |
|
|
|
|
Texte = "Texte5", |
|
|
|
|
IdAuteur = "ecf528c3-e509-402f-87bb-c8821467e350", |
|
|
|
|
IdCollaborateur = "006226f6-51b2-4a02-a302-7447f7fccc04", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 6, |
|
|
|
|
Titre = "Titre6", |
|
|
|
|
Texte = "Texte6", |
|
|
|
|
IdAuteur = "6aa62dcb-f7c9-4c0c-af40-e934a4d6a7eb", |
|
|
|
|
IdCollaborateur = "006226f6-51b2-4a02-a302-7447f7fccc04", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 7, |
|
|
|
|
Titre = "Titre7", |
|
|
|
|
Texte = "Texte7", |
|
|
|
|
IdAuteur = "6aa62dcb-f7c9-4c0c-af40-e934a4d6a7eb", |
|
|
|
|
IdCollaborateur = "006226f6-51b2-4a02-a302-7447f7fccc04", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
|
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 8, |
|
|
|
|
Titre = "Titre8", |
|
|
|
|
Texte = "Texte8", |
|
|
|
|
IdAuteur = "571463f3-b286-4a21-9eab-0707dc506dec", |
|
|
|
|
IdCollaborateur = "006226f6-51b2-4a02-a302-7447f7fccc04", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 9, |
|
|
|
|
Titre = "Titre9", |
|
|
|
|
Texte = "Texte9", |
|
|
|
|
IdAuteur = "571463f3-b286-4a21-9eab-0707dc506dec", |
|
|
|
|
IdCollaborateur = "006226f6-51b2-4a02-a302-7447f7fccc04", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
note = new Note() |
|
|
|
|
{ |
|
|
|
|
Id = 10, |
|
|
|
|
Titre = "Titre10", |
|
|
|
|
Texte = "Texte10", |
|
|
|
|
IdAuteur = "6aa62dcb-f7c9-4c0c-af40-e934a4d6a7eb", |
|
|
|
|
IdCollaborateur = "006226f6-51b2-4a02-a302-7447f7fccc04", |
|
|
|
|
DateCreation = DateTime.Now, |
|
|
|
|
DateUpdate = DateTime.Now |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
this.Note.Add(note); |
|
|
|
|
this.SaveChanges(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|