c# - AddObject and Save Not Working -
i have dbml have table within mvc environment.
db.trucktable.addobject(trucktbl); db.savechanges();
it isn't working can't find addobject()
pertaining trucktable
. wordering if there way around make table save in dbml file.
with linq-to-sql method add objects called insertonsubmit()
, saving changes done through submitchanges()
.
db.trucktable.insertonsubmit(trucktbl); db.submitchanges();
Comments
Post a Comment