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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -