.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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -