public List<CompanyInformation> GetCompanyInformations() { List<CompanyInformation> companies = new List<CompanyInformation>(); database.Open(); DataTable table = database.Select("select * from company"); foreach (DataRow row in table.Rows) { CompanyInformation c = new CompanyInformation(); c.Fill(row); companies.Add(c); } database.Close(); return companies; }