Пример #1
0
        public AutAccidenteCollection FetchByQuery(Query qry)
        {
            AutAccidenteCollection coll = new AutAccidenteCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #2
0
        public AutAccidenteCollection FetchAll()
        {
            AutAccidenteCollection coll = new AutAccidenteCollection();
            Query qry = new Query(AutAccidente.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #3
0
        public AutAccidenteCollection FetchByID(object IdAccidente)
        {
            AutAccidenteCollection coll = new AutAccidenteCollection().Where("idAccidente", IdAccidente).Load();

            return(coll);
        }