コード例 #1
0
ファイル: CardnetDAL.cs プロジェクト: jumppard/CNWP1
        public void retrieveConstantPartners()
        {
            var pomList = m_cardnetDB.C___CONSTANT_PARTNER.ToList();

            m_constantPartner = new List <ConstantPartner>();

            if (m_partners == null)
            {
                retrievePartners();
            }

            foreach (var constant in pomList)
            {
                ConstantPartner constP = new ConstantPartner();

                constP.ConstantDescription = constant.constant_description;
                constP.ConstantName        = constant.constant_name;
                constP.ConstantValue       = constant.constant_value;
                constP.Id          = constant.id;
                constP.Inserted    = constant.insert_date;
                constP.LastUpdated = constant.last_update_date;
                constP.PartnerName = m_partners.Where(p => p.ID == constant.partner_id).Select(p => p.OrganizationName).First();

                m_constantPartner.Add(constP);
            }
        }
コード例 #2
0
ファイル: CardnetDAL.cs プロジェクト: jumppard/CNWP1
        public void retrieveConstantPartner()
        {
            var pomList = m_cardnetDB.C___CONSTANT_PARTNER.ToList();

            m_constantPartner = new List <ConstantPartner>();

            foreach (var item in pomList)
            {
                ConstantPartner pomConst = new ConstantPartner();

                pomConst.ConstantDescription = item.constant_description;
                pomConst.ConstantName        = item.constant_name;
                pomConst.ConstantValue       = item.constant_value;
                pomConst.Id          = item.id;
                pomConst.Inserted    = item.insert_date;
                pomConst.LastUpdated = item.last_update_date;
                pomConst.PartnerId   = item.partner_id;
                // TOOD pomConst.PartnerName = ?? // necessary???

                m_constantPartner.Add(pomConst);
            }
        }