public static void InitDB()
 {
     if (Session_DB.GetAll <PersonModel>() == null)
     {
         Session_DB.Submit <PersonModel>(PersonModel.TestPersons);
     }
 }
Beispiel #2
0
 public static List <T> GetAll <T>() where T : Model
 {
     return(Session_DB.GetAll <T>());
 }