Beispiel #1
0
 public static void AddEnvoys(Deputy en)
 {
     using (SqliteDbContext sqliteDbContext = new SqliteDbContext())
     {
         sqliteDbContext.Deputies.Add(en);
         sqliteDbContext.SaveChanges();
     }
 }
Beispiel #2
0
 public static List <Deputy> GetElements(SqliteDbContext sqliteDbContext)
 {
     return(sqliteDbContext.Deputies.ToList());
 }