.net - What's the Oracle equivalent of System.Data.Linq.DataContext? -
.net - What's the Oracle equivalent of System.Data.Linq.DataContext? -
i implementing irepository interface against oracle database.
public interface idinnerrepository { iqueryable<dinner> findalldinners(); iqueryable<dinner> findbylocation(float latitude, float longitude); iqueryable<dinner> findupcomingdinners(); dinner getdinner(int id); void add(dinner dinner); void delete(dinner dinner); void save(); }
how should implement save method? if working linq2sql create database context , phone call submitchanges on database context. how can implement same functionality oracle end?
/// <summary> /// database context /// </summary> private dbdatacontext db = new dbdatacontext(); public void save() { this.db.submitchanges(); }
thanks!
if want utilize linqtosql equivalent oracle, there linqtooracle project on codeplex. provides oracledatacontext
, else need. however, recent checkin july 20, 2010 there's not lot going on there.
you start using linqtoentities designed platform-independent. however, can find commercial provider. here's another question on using oracle ado.net entity framework.
.net oracle linq-to-sql datacontext irepository
Comments
Post a Comment