示例#1
0
        private IEnumerable GetConcreateMailMergeDataSouce()
        {
            List <ConcreateDataObject> collection = new List <ConcreateDataObject>();
            var data = new ConcreateDataObject()
            {
                FirstName                       = "Andrew",
                LastName                        = "Fuller",
                CompanyName                     = "Mobile Phone Factory",
                PurchasedItemsCount             = 50,
                ProductName                     = "mobile phones",
                ProductSupportPhone             = "skype: MobilePhoneFactorySupport",
                ProductSupportPhoneAvailability = "24/7",
                ProductSupportEmail             = "*****@*****.**",
                SalesRepFirstName               = "Nancy",
                SalesRepLastName                = "Davolio",
                SalesRepTitle                   = "Sales Associate"
            };

            collection.Add(data);

            data = new ConcreateDataObject()
            {
                FirstName                       = "Margaret",
                LastName                        = "Peacock",
                CompanyName                     = "Mobile Phone Factory Japan",
                PurchasedItemsCount             = 1200,
                ProductName                     = "mobile phones",
                ProductSupportPhone             = "skype: MobilePhoneFactorySupportJapan",
                ProductSupportPhoneAvailability = "24/7",
                ProductSupportEmail             = "*****@*****.**",
                SalesRepFirstName               = "Asako",
                SalesRepLastName                = "Hoshi",
                SalesRepTitle                   = "Sales Associate"
            };

            collection.Add(data);
            return(collection);
        }
        private IEnumerable GetConcreateMailMergeDataSouce()
        {
            List<ConcreateDataObject> collection = new List<ConcreateDataObject>();
            var data = new ConcreateDataObject()
            {
                FirstName = "Andrew",
                LastName = "Fuller",
                CompanyName = "Mobile Phone Factory",
                PurchasedItemsCount = 50,
                ProductName = "mobile phones",
                ProductSupportPhone = "skype: MobilePhoneFactorySupport",
                ProductSupportPhoneAvailability = "24/7",
                ProductSupportEmail = "*****@*****.**",
                SalesRepFirstName = "Nancy",
                SalesRepLastName = "Davolio",
                SalesRepTitle = "Sales Associate"
            };

            collection.Add(data);

            data = new ConcreateDataObject()
            {
                FirstName = "Margaret",
                LastName = "Peacock",
                CompanyName = "Mobile Phone Factory Japan",
                PurchasedItemsCount = 1200,
                ProductName = "mobile phones",
                ProductSupportPhone = "skype: MobilePhoneFactorySupportJapan",
                ProductSupportPhoneAvailability = "24/7",
                ProductSupportEmail = "*****@*****.**",
                SalesRepFirstName = "Asako",
                SalesRepLastName = "Hoshi",
                SalesRepTitle = "Sales Associate"
            };

            collection.Add(data);
            return collection;
        }