本文整理汇总了C#中Country.Save方法的典型用法代码示例。如果您正苦于以下问题:C# Country.Save方法的具体用法?C# Country.Save怎么用?C# Country.Save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Country
的用法示例。
在下文中一共展示了Country.Save方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BtnCreate_Click
protected void BtnCreate_Click( object sender, EventArgs e )
{
if ( Page.IsValid ) {
Country country = new Country( StoreId, TxtName.Text, long.Parse( DrpCurrencies.SelectedValue ) );
country.Save();
Redirect( WebUtils.GetPageUrl( Constants.Pages.EditCountry ) + "?id=" + country.Id + "&storeId=" + country.StoreId );
}
}
示例2: Insert
public void Insert(string Code,string Name)
{
Country item = new Country();
item.Code = Code;
item.Name = Name;
item.Save(UserName);
}
示例3: Update
public void Update(int CountryId,string Code,string Name)
{
Country item = new Country();
item.CountryId = CountryId;
item.Code = Code;
item.Name = Name;
item.MarkOld();
item.Save(UserName);
}
示例4: Insert
public void Insert(string CountryCode,string CountryX,string CurrencyCode,string Currency)
{
Country item = new Country();
item.CountryCode = CountryCode;
item.CountryX = CountryX;
item.CurrencyCode = CurrencyCode;
item.Currency = Currency;
item.Save(UserName);
}
示例5: Update
public void Update(int CountryID,string CountryCode,string CountryX,string CurrencyCode,string Currency)
{
Country item = new Country();
item.CountryID = CountryID;
item.CountryCode = CountryCode;
item.CountryX = CountryX;
item.CurrencyCode = CurrencyCode;
item.Currency = Currency;
item.MarkOld();
item.Save(UserName);
}