Пример #1
0
        protected override Dictionary <string, ProgramPlanRecord> GetData(IEnumerable <string> primaryKeys)
        {
            Dictionary <string, ProgramPlanRecord> records = new Dictionary <string, ProgramPlanRecord>();

            foreach (ProgramPlanRecord each in QueryProgramPlan.GetProgramPlans(primaryKeys))
            {
                records.Add(each.ID, each);
            }

            return(records);
        }
Пример #2
0
        protected override Dictionary <string, ProgramPlanRecord> GetAllData()
        {
            Dictionary <string, ProgramPlanRecord> records = new Dictionary <string, ProgramPlanRecord>();

            foreach (ProgramPlanRecord each in QueryProgramPlan.GetAllProgramPlans())
            {
                records.Add(each.ID, each);
            }

            return(records);
        }