public MasterDetailMiniSummarySettingCollection FetchByQuery(Query qry)
        {
            MasterDetailMiniSummarySettingCollection coll = new MasterDetailMiniSummarySettingCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public MasterDetailMiniSummarySettingCollection FetchAll()
        {
            MasterDetailMiniSummarySettingCollection coll = new MasterDetailMiniSummarySettingCollection();
            Query qry = new Query(MasterDetailMiniSummarySetting.Schema);

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

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
        public MasterDetailMiniSummarySettingCollection FetchByID(object ModuleId)
        {
            MasterDetailMiniSummarySettingCollection coll = new MasterDetailMiniSummarySettingCollection().Where("ModuleId", ModuleId).Load();

            return(coll);
        }