コード例 #1
0
 public List <Construction> GetAll()
 {
     using (SQLite.SQLiteConnection conn = new SQLite.SQLiteConnection(App.DB_PATH))
     {
         try
         {
             conn.CreateTable <Construction>();
             conn.CreateTable <ConstrucionEmployee>();
             return(conn.GetAllWithChildren <Construction>().ToList());
         }
         catch (Exception e)
         {
             Construction c = new Construction()
             {
                 State = new State().SetError(e.Message)
             };
             List <Construction> lst = new List <Construction>();
             lst.Add(c);
             return(lst);
         }
     }
 }