示例#1
0
 private static object[] Take(FixedAssetAccessaryEntity fixedAssetCurrency)
 {
     return(new object[]
     {
         "@FixedAssetAccessaryId", fixedAssetCurrency.FixedAssetAccessaryId,
         "@FixedAssetId", fixedAssetCurrency.FixedAssetId,
         "@FixedAssetAccessaryName", fixedAssetCurrency.FixedAssetAccessaryName,
         "@Quantity", fixedAssetCurrency.Quantity,
         "@Unit", fixedAssetCurrency.Unit,
         "@CurrencyCode", fixedAssetCurrency.CurrencyCode,
         "@ExchangeRate", fixedAssetCurrency.ExchangeRate,
         "@AmountOc", fixedAssetCurrency.AmountOc,
         "@AmountEx", fixedAssetCurrency.AmountEx
     });
 }
示例#2
0
 internal static FixedAssetAccessaryModel FromDataTransferObject(FixedAssetAccessaryEntity entity)
 {
     return(entity == null ? null : AutoMapper.Mapper.Map <FixedAssetAccessaryEntity, FixedAssetAccessaryModel>(entity));
 }
示例#3
0
        public int InsertFixedAssetAccessary(FixedAssetAccessaryEntity fixedAssetAccessaryEntity)
        {
            const string sql = @"uspInsert_FixedAssetAccessary";

            return(Db.Insert(sql, true, Take(fixedAssetAccessaryEntity)));
        }