Hi. I just migrate from LinqToSql Dynamic data to EntityDataSourceDynamic Data. I have some problem to work with EntityDatasource
1) In entityDataSource I cannot assign a linqQuery with Join in selecting event (i know that now is QueryCreated Event, but the problem is teh join)
2) In LinqToEntity i cannot use conversion on the fly. ES i cannot write from a on datacontext.b where a.id=int.parse(textbox.text)
3) In EntityDataSource i cannot autogenerate the function where with wizard
exist a "Power" version of EntityDataSource or somethink that works like linqDataSource? I know that MS select EntityFramework and left LinqToSql, but why the datasource is so bad?
In EntityDataSource i cannot autogenerate the function where with wizard
Hi,
If you wanna use your own defined function, you should please create a Stored Procdure first and then when generating an edmx file, please import this function first and then you can use that in EntityDataSource.
So EntityDatasource is less efficienty compared to LinqDataSource and there is nothing to do, correct?
Not so absolutely. EF is facing with building an OOP-based programming struture. Compared with this, LinqDatasource is a "lighter" one. So they quite differ from each other.
kuria
Member
5 Points
41 Posts
LinqDataSource VS EntityDataSource
Dec 17, 2012 01:44 PM|LINK
Hi. I just migrate from LinqToSql Dynamic data to EntityDataSourceDynamic Data. I have some problem to work with EntityDatasource
1) In entityDataSource I cannot assign a linqQuery with Join in selecting event (i know that now is QueryCreated Event, but the problem is teh join)
2) In LinqToEntity i cannot use conversion on the fly. ES i cannot write from a on datacontext.b where a.id=int.parse(textbox.text)
3) In EntityDataSource i cannot autogenerate the function where with wizard
exist a "Power" version of EntityDataSource or somethink that works like linqDataSource? I know that MS select EntityFramework and left LinqToSql, but why the datasource is so bad?
thanks
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: LinqDataSource VS EntityDataSource
Dec 18, 2012 04:41 AM|LINK
Hi,
If you wanna use your own defined function, you should please create a Stored Procdure first and then when generating an edmx file, please import this function first and then you can use that in EntityDataSource.
Maybe you can also consider View in SQL.
kuria
Member
5 Points
41 Posts
Re: LinqDataSource VS EntityDataSource
Dec 18, 2012 06:56 AM|LINK
I know that others ways exists.. So EntityDatasource is less efficienty compared to LinqDataSource and there is nothing to do, correct?
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: LinqDataSource VS EntityDataSource
Dec 19, 2012 12:24 AM|LINK
Not so absolutely. EF is facing with building an OOP-based programming struture. Compared with this, LinqDatasource is a "lighter" one. So they quite differ from each other.