コード例 #1
0
        public bool CountryRegionCurrencyDelete(CountryRegionCurrency countryregioncurrency)
        {
            return Execute<bool>(dal =>
            {
                CountryRegionCurrency countryregioncurrencyDelete = dal.CountryRegionCurrency.Where(x => x.CountryRegionCode == countryregioncurrency.CountryRegionCode).FirstOrDefault();
                if (countryregioncurrencyDelete != null)
                {
                    dal.CountryRegionCurrency.DeleteOnSubmit(countryregioncurrencyDelete);
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
コード例 #2
0
        public bool CountryRegionCurrencyUpdate(CountryRegionCurrency countryregioncurrency)
        {
            return Execute<bool>(dal =>
               {
               CountryRegionCurrency countryregioncurrencyUpdate = dal.CountryRegionCurrency.Where(x => x.CountryRegionCode == countryregioncurrency.CountryRegionCode).FirstOrDefault();
               if (countryregioncurrencyUpdate != null)
               {
                   countryregioncurrencyUpdate.CountryRegionCode = countryregioncurrency.CountryRegionCode;
                   countryregioncurrencyUpdate.CurrencyCode = countryregioncurrency.CurrencyCode;
                   countryregioncurrencyUpdate.ModifiedDate = countryregioncurrency.ModifiedDate;

                   dal.SubmitChanges();
                   return true;
               }
               return false;

               });
        }
コード例 #3
0
 partial void DeleteCountryRegionCurrency(CountryRegionCurrency instance);
コード例 #4
0
 partial void UpdateCountryRegionCurrency(CountryRegionCurrency instance);
コード例 #5
0
 partial void InsertCountryRegionCurrency(CountryRegionCurrency instance);
コード例 #6
0
		private void detach_CountryRegionCurrencies(CountryRegionCurrency entity)
		{
			this.SendPropertyChanging();
			entity.Currency = null;
		}
コード例 #7
0
		private void attach_CountryRegionCurrencies(CountryRegionCurrency entity)
		{
			this.SendPropertyChanging();
			entity.CountryRegion = this;
		}
コード例 #8
0
 public void CountryRegionCurrencyUpdate(CountryRegionCurrency countryregioncurrency)
 {
     adventureWorks_BC.CountryRegionCurrencyUpdate(countryregioncurrency);
 }