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 }); }
internal static FixedAssetAccessaryModel FromDataTransferObject(FixedAssetAccessaryEntity entity) { return(entity == null ? null : AutoMapper.Mapper.Map <FixedAssetAccessaryEntity, FixedAssetAccessaryModel>(entity)); }
public int InsertFixedAssetAccessary(FixedAssetAccessaryEntity fixedAssetAccessaryEntity) { const string sql = @"uspInsert_FixedAssetAccessary"; return(Db.Insert(sql, true, Take(fixedAssetAccessaryEntity))); }