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