예제 #1
0
 /// <summary>
 /// Insert a ExchangeRate.
 /// </summary>
 public void Insert(Model.ExchangeRate exchangeRate)
 {
     //
     // todo:add other logic here
     //
     accessor.Insert(exchangeRate);
 }
예제 #2
0
 /// <summary>
 /// Update a ExchangeRate.
 /// </summary>
 public void Update(Model.ExchangeRate exchangeRate)
 {
     //
     // todo: add other logic here.
     //
     accessor.Update(exchangeRate);
 }
예제 #3
0
        public bool ExistsExcept(Model.ExchangeRate e)
        {
            Hashtable paras = new Hashtable();

            paras.Add("newId", e.Id);
            paras.Add("oldId", Get(e.Id) == null?null:Get(e.Id).Id);
            return(sqlmapper.QueryForObject <bool>("ExchangeRate.existsexcept", paras));
        }
예제 #4
0
        public bool IsExistsSame(Model.ExchangeRate model)
        {
            Hashtable ht = new Hashtable();

            ht.Add("YearValue", model.YearValue);
            ht.Add("MonthValue", model.MonthValue);
            ht.Add("Currency", model.Currency);
            ht.Add("Id", model.Id);

            return(sqlmapper.QueryForObject <bool>("ExchangeRate.IsExistsSame", ht));
        }
예제 #5
0
 public bool IsExistsSame(Model.ExchangeRate model)
 {
     return(accessor.IsExistsSame(model));
 }
예제 #6
0
 public bool ExistsExcept(Model.ExchangeRate e)
 {
     return(accessor.ExistsExcept(e));
 }
예제 #7
0
 public void Update(Model.ExchangeRate e)
 {
     this.Update <Model.ExchangeRate>(e);
 }
예제 #8
0
 public void Insert(Model.ExchangeRate e)
 {
     this.Insert <Model.ExchangeRate>(e);
 }