DataServiceCollection load from external source

Posted by spdro on Stack Overflow See other posts from Stack Overflow or by spdro
Published on 2012-09-06T08:54:39Z Indexed on 2012/09/06 9:38 UTC
Read the original article Hit count: 190

Filed under:
|
|

I'm trying to load external data to my entyity.

DataServiceCollection<products> products = new DataServiceCollection<products>();
var adapter = new OleDbDataAdapter("SELECT * FROM [products$]", "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=d:\\products.xlsx;Extended Properties=\"Excel 12.0;HDR=YES;\"");
DataSet ds = new DataSet();
adapter.Fill(ds, "excell");

products.Load(????);

Can anyone help ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about entity-framework