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

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

// Begin Bayshore custom code block (rread 6/26/07)
// Ignore records marked for deletion when doing a FetchAll
            if (SlideShowModule.Schema.GetColumn("IsDeleted") != null)
            {
                qry.WHERE("IsDeleted <> true");
            }
            else if (SlideShowModule.Schema.GetColumn("Deleted") != null)
            {
                qry.WHERE("Deleted <> true");
            }
// End Bayshore custom code block

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

            return(coll);
        }