public MasterDetailFlagCommentCollection FetchByQuery(Query qry) { MasterDetailFlagCommentCollection coll = new MasterDetailFlagCommentCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public MasterDetailFlagCommentCollection FetchAll() { MasterDetailFlagCommentCollection coll = new MasterDetailFlagCommentCollection(); Query qry = new Query(MasterDetailFlagComment.Schema); // Begin Bayshore custom code block (rread 6/26/07) // Ignore records marked for deletion when doing a FetchAll if (MasterDetailFlagComment.Schema.GetColumn("IsDeleted") != null) { qry.WHERE("IsDeleted <> true"); } else if (MasterDetailFlagComment.Schema.GetColumn("Deleted") != null) { qry.WHERE("Deleted <> true"); } // End Bayshore custom code block coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }