# Update LINQ Returns using BO.Update

**URL:** <https://www.epiusers.help/t/update-linq-returns-using-bo-update/75827>\
**Category:** Epicor ERP 10\
**Tags:** bpm\
**Created:** [February 22, 2021, 3:49pm UTC](https://www.epiusers.help/t/update-linq-returns-using-bo-update/75827 "2021-02-22T15:49:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrewpech](https://www.epiusers.help/user_avatar/www.epiusers.help/andrewpech/32/48844_2.png) [@Andrewpech](https://www.epiusers.help/u/Andrewpech)\
**Post date:** [February 22, 2021, 3:49pm UTC](https://www.epiusers.help/t/update-linq-returns-using-bo-update/75827/1 "2021-02-22T15:49:43Z")

</div>

Good Morning,

Does anyone have an example to update using the BO.Table.Update? I want to learn how to do this the proper way.

I have this code firing off in a pre-process method. My assemblies are added, but I’m trying to wrap my head around the syntax for erp.contracts.BO.QuoteAsm.Update

```
try
{
var hed = ttQuoteHed;
var dtl = ttQuoteDtl.FirstOrDefault();

string company = dtl.Company;
int quotenum = dtl.QuoteNum;
int quoteline = dtl.QuoteLine;

var asmtbl = (from asm in Db.QuoteAsm where asm.Company == company && asm.QuoteNum == quotenum && asm.QuoteLine == quoteline select asm); 

if(asmtbl !=null)
{
  foreach (var asmline in asmtbl)
  {

     asmline.Template = true;
  
  } 
}
Db.Validate();
} 
catch (Exception ex)
{
 this.PublishInfoMessage(ex.Message, Ice.Common.BusinessObjectMessageType.Information, Ice.Bpm.InfoMessageDisplayMode.Individual, "", ""); ;
}
//foreach (var line in dtl)

```

---

<div class="post-metadata">

**Author:** ![hkeric.wci](https://www.epiusers.help/user_avatar/www.epiusers.help/hkeric.wci/32/52019_2.png) [@hkeric.wci](https://www.epiusers.help/u/hkeric.wci)\
**Post date:** [February 22, 2021, 5:59pm UTC](https://www.epiusers.help/t/update-linq-returns-using-bo-update/75827/2 "2021-02-22T17:59:17Z")

</div>

> [@Update Vendor Payment Method With BAQ](https://www.epiusers.help/t/update-vendor-payment-method-with-baq/74653/5):
>
> I would do that with an Update by Query widget, right?

---

<div class="post-metadata">

**Author:** ![Andrewpech](https://www.epiusers.help/user_avatar/www.epiusers.help/andrewpech/32/48844_2.png) [@Andrewpech](https://www.epiusers.help/u/Andrewpech)\
**Post date:** [February 23, 2021, 7:03pm UTC](https://www.epiusers.help/t/update-linq-returns-using-bo-update/75827/3 "2021-02-23T19:03:50Z")

</div>

QuoteASM for some reason isn’t related so I couldn’t even select that table.
