Exemplo n.º 1
0
        private static Festival VerwerkRij(IDataRecord rij)
        {

            Festival nieuw = new Festival();

            nieuw.StartDate = Convert.ToDateTime(rij["StartDate"].ToString());
            nieuw.EndDate = Convert.ToDateTime(rij["EndDate"].ToString());

            return nieuw;
        }
Exemplo n.º 2
0
        public static Festival GetData()
        {
            Festival nieuw = new Festival();

            string sql = "SELECT * FROM Festival";

            DbDataReader reader = Database.GetData(sql);

            while (reader.Read())
            {
                nieuw = VerwerkRij(reader);

            }
            return nieuw;
        }