コード例 #1
0
        public void DownloadBrands()
        {
            var brandResponse = api.getBrands();
            using (CatalogDataContext dc = new CatalogDataContext())
            {
                foreach (Brand brand in brandResponse.getBrands())
                {
                    SS_Brand ssBrand = new SS_Brand() { id = System.Guid.NewGuid(), brand_id = brand.getId(), brand_name = brand.getName(), url = brand.getUrl() };
                    dc.SS_Brands.InsertOnSubmit(ssBrand);
                }

                dc.SubmitChanges();
            }
        }
コード例 #2
0
 partial void UpdateSS_Brand(SS_Brand instance);
コード例 #3
0
 partial void DeleteSS_Brand(SS_Brand instance);
コード例 #4
0
 partial void InsertSS_Brand(SS_Brand instance);