SqlBulkCopy and Entity Framework
Posted
by KP
on Stack Overflow
See other posts from Stack Overflow
or by KP
Published on 2010-03-31T14:02:10Z
Indexed on
2010/04/12
20:03 UTC
Read the original article
Hit count: 1290
My current project consists of 3 standard layers: data, business, and presentation. I would like to use data entities for all my data access needs. Part of the functionality of the app will that it will need to copy all data within a flat file into a database. The file is not so big so I can use SqlBulkCopy. I have found several articles regarding the usage of SqlBulkCopy class in .NET. However, all the articles are using DataTables to move data back and forth.
Is there a way to use data entities along with SqlBulkCopy or will I have to use DataTables?
© Stack Overflow or respective owner