public AuthenticationManager(DatabaseEF d)
 {
     db = d;
     if (db.Get <Person>(1) == null)
     {
         db.Save <Person>(new Person()
         {
             Birth      = new DateTime(1990, 3, 28),
             BirthPlace = "Scafati",
             FiscalCode = "LFNGPP90C28I483C",
             Enabled    = true,
             Name       = "Giuseppe",
             Surname    = "Elefante"
         });
     }
 }
Example #2
0
 public ItemsManager(DatabaseEF d)
 {
     db = d;
 }
 public PersonsManager(DatabaseEF d)
 {
     db = d;
 }
Example #4
0
 public WarehouseManager(DatabaseEF d)
 {
     db     = d;
     random = new Random();
 }
 public PaymentsManager(DatabaseEF d)
 {
     db = d;
 }
Example #6
0
 public NewsboardManager(DatabaseEF d)
 {
     db = d;
 }