.net - What's the Oracle equivalent of System.Data.Linq.DataContext? -


I am implementing an IRPOSORARY interface against an Oracle database.

  Public Interface IDNER Repository {IQueryable & lt; Dinner & gt; FindAllDinners (); IQueryable & LT; Dinner & gt; FindByLocation (float latitude, float longitude); IQueryable & LT; Dinner & gt; FindUpcomingDinners (); Dinner guestdinner (id); Add Zero (Dinner Dinner); Remove Zero (Dinner Dinner); Save zero (); }  

How do I implement the method of saving? If I was working with Linq2Sql then I would create a database reference and then call the SubmitChanges on the database reference. How can I apply the same functionality with Oracle Back End?

  /// & lt; Summary & gt; /// Database Context /// & lt; / Summary & gt; Private DBDataContext DB = new DBDataContext (); Save Public Zero () {this.db.SubmitChanges (); }  

Thanks!

If you want to use LinqToSql equals Oracle, codepax is the one on one. It provides a OracleDataContext and whatever you need, however, the most recent investigation is from July 20, 2010, so there is not much going on there.

You can also start using link-to-market which was designed to be platform-independent. However, I can only find one. Ado Here's how to use Oracle with Net Entity Framework.


Comments