NTSPL Blog logo
NTSPL Insights

How to use InsertAllOnSubmit in linq?

21 Sep 2012
Share

using (SomeDataContext db = new SomeDataContext()) {

	List<DbItemTableName> dbItemlist = new List<DbItemTableName>();

	DbItemTableName d ;

	foreach(Item i in Items) {

		d= new DbItemTableName();

		d.value = i.value;

		dbItemlist.Add(d);

	}

	db.InsertAllOnSubmit(dbItems);

	db.SubmitChanges();

}

Share

Recent Posts

Laravel in 2026 – Features, Benefits, Use Cases & Why Businesses Choose Laravel.

Laravel in 2026: Why It’s Still the #1 PHP Framework for Scalable,...

18 Apr 2026
Predictive Auto-Scaling in 2026: How AI is Transforming Cloud Performance & Cost Optimization.

Predictive Auto-Scaling in 2026: How AI is Transforming Cloud Performance & Cost...

14 Apr 2026
Cloud vs Dedicated Servers in 2026

Cloud vs Dedicated Servers in 2026: Choosing the Right Infrastructure for High-Performance...

10 Apr 2026
Together We Travel, Together We Grow NTSPL Family Office Outing to Barikul Resort, Chilika.

Together We Travel, Together We Grow NTSPL Family Office Outing to Barikul...

31 Mar 2026
AI in 2026

AI in 2026: Key Strategies Enterprises Must Get Right for Future Success.

20 Mar 2026
facebook icon twitter icon instagram icon youtube icon youtube icon
  • Home
  • About Us
  • Career
  • Contacts
  • Privacy Policy
  • Term & Conditions
Copyright © 2022 NTSPL. All Rights Reserved.