示例#1
0
        public EmployeeAddressCollection FetchByQuery(Query qry)
        {
            EmployeeAddressCollection coll = new EmployeeAddressCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
示例#2
0
        public EmployeeAddressCollection FetchAll()
        {
            EmployeeAddressCollection coll = new EmployeeAddressCollection();
            Query qry = new Query(EmployeeAddress.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
示例#3
0
        public EmployeeAddressCollection FetchByID(object EmployeeID)
        {
            EmployeeAddressCollection coll = new EmployeeAddressCollection().Where("EmployeeID", EmployeeID).Load();

            return(coll);
        }