Go Back   AnandTech Forums > Software > Programming

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Home and Garden
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2014
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 09-27-2010, 01:36 PM   #1
anergos
Junior Member
 
Join Date: Sep 2010
Posts: 4
Default What is the equivalent of Java Persistence API for .NET?

Hello,

I would like to ask two things:

1)Which is the equivalent of Java Persistence API for .NET?
2)Which is the best book for someone who knows Java but knows nothing for Java EE?

Thanks alot
anergos is offline   Reply With Quote
Old 09-27-2010, 01:44 PM   #2
Cogman
Diamond Member
 
Cogman's Avatar
 
Join Date: Sep 2000
Location: A nomadic herd of wild fainting goats
Posts: 9,892
Default

1. The java language. One thing I'll give to java, the full implementation has about everything under the sun (or is it the oracle now?)

2. the Java docs? If you know java and want to program in Java EE, then I would just suggest reading up on the API. It isn't like it is a radically different language.
__________________
CogBlog - Random Babblings of Cogman mainly focused on software.
Cogman is offline   Reply With Quote
Old 09-27-2010, 03:42 PM   #3
KB
Diamond Member
 
KB's Avatar
 
Join Date: Nov 1999
Location: Maryland
Posts: 4,316
Default

Quote:
Originally Posted by anergos View Post
Hello,

I would like to ask two things:

1)Which is the equivalent of Java Persistence API for .NET?
2)Which is the best book for someone who knows Java but knows nothing for Java EE?

Thanks alot
1. There is an nHibernate framework for .Net. You can also use ADO.Net for entities 4.0 to persist objects to a relational database.
KB is online now   Reply With Quote
Old 09-27-2010, 04:57 PM   #4
Markbnj
Elite Member
Moderator Emeritus
 
Markbnj's Avatar
 
Join Date: Sep 2005
Posts: 14,076
Default

Quote:
Originally Posted by KB View Post
1. There is an nHibernate framework for .Net. You can also use ADO.Net for entities 4.0 to persist objects to a relational database.
I used Subsonic on a recent project and was pretty impressed by it. Much less intrusive than nHibernate. You basically just create your database, point the subsonic templates at it, and it generates a set of classes for CRUD access. Worth checking out.
__________________
Everytime I try to tell you, the words just come out wrong

**
Some meaningless scribbling of no account

The 4th Realm

Arts and Letters Daily - Get some culture
Markbnj is offline   Reply With Quote
Old 09-27-2010, 07:41 PM   #5
Bulldog13
Golden Member
 
Bulldog13's Avatar
 
Join Date: Jul 2002
Posts: 1,611
Default

1.) Linq to Sql - absolute pleasure to use. Mark - any first hand experience on how LINQ to SQL compares to SubSonic?
__________________
One hour of life, crowded to the full with glorious action, and filled with noble risks, is worth whole years of those mean observances of paltry decorum, in which men steal through existence, like sluggish waters through a marsh, without either honor or observation. - Sir Walter Scott

C# Programming Thoughts
Bulldog13 is offline   Reply With Quote
Old 09-27-2010, 11:26 PM   #6
Argo
Lifer
 
Argo's Avatar
 
Join Date: Apr 2000
Posts: 10,018
Default

There's NiHibernate...
Argo is offline   Reply With Quote
Old 09-28-2010, 07:39 AM   #7
anergos
Junior Member
 
Join Date: Sep 2010
Posts: 4
Default

I thought that through COM+ .NET can achieve persistence and all this enterprise-like java abilities. Is it true? Any good book for Java EE except of java docs?
anergos is offline   Reply With Quote
Old 09-28-2010, 09:57 AM   #8
Train
Lifer
 
Join Date: Jun 2000
Posts: 13,344
Default

I havent used it yet, but the .Net Entity Framework seems to be getting a lot of press lately. I guess (not an expert on it) is that it is the natural successor to Linq-to-SQL
__________________
.
Train is offline   Reply With Quote
Old 09-28-2010, 01:50 PM   #9
Markbnj
Elite Member
Moderator Emeritus
 
Markbnj's Avatar
 
Join Date: Sep 2005
Posts: 14,076
Default

Quote:
Originally Posted by Bulldog13 View Post
1.) Linq to Sql - absolute pleasure to use. Mark - any first hand experience on how LINQ to SQL compares to SubSonic?
It's basically the same thing. Have a look at it and you'll see what I mean. They have linq2sql templates, and probably the biggest advantage for me is simple programmatic access to stored procedures.
__________________
Everytime I try to tell you, the words just come out wrong

**
Some meaningless scribbling of no account

The 4th Realm

Arts and Letters Daily - Get some culture
Markbnj is offline   Reply With Quote
Old 09-28-2010, 03:31 PM   #10
ModestGamer
Banned
 
Join Date: Jun 2010
Posts: 1,140
Default

Use c++

Use your brain
-ViRGE

Last edited by ViRGE; 09-28-2010 at 05:14 PM.
ModestGamer is offline   Reply With Quote
Old 09-28-2010, 04:15 PM   #11
Cogman
Diamond Member
 
Cogman's Avatar
 
Join Date: Sep 2000
Location: A nomadic herd of wild fainting goats
Posts: 9,892
Default

Quote:
Originally Posted by Train View Post
I havent used it yet, but the .Net Entity Framework seems to be getting a lot of press lately. I guess (not an expert on it) is that it is the natural successor to Linq-to-SQL
Thats what I hear. My brother informs me that Linq to SQL is supposed to be deprecated here in the future.

As for my first post, disregard it, I misunderstood the question
__________________
CogBlog - Random Babblings of Cogman mainly focused on software.
Cogman is offline   Reply With Quote
Old 09-28-2010, 07:54 PM   #12
linkgoron
Golden Member
 
Join Date: Mar 2005
Posts: 1,380
Default

Quote:
Originally Posted by Train View Post
I havent used it yet, but the .Net Entity Framework seems to be getting a lot of press lately. I guess (not an expert on it) is that it is the natural successor to Linq-to-SQL
I've only heard bad things about Enitity Framework.
I've heard good things about nHibernate, but I haven't used any of them.


L2SQL is great though (it's not perfect, but it gets the job done).
linkgoron is offline   Reply With Quote
Old 03-14-2012, 10:30 AM   #13
mosheho
Junior Member
 
Join Date: Mar 2012
Posts: 1
Default .NET Persistence API

The equivalent for JPA is NPA (.NET Persistence API)
It is a specification based on JPA.
An implementation of the NPA spec also exists and is base on NHibernate.
see: http://www.npersistence.org
http://en.wikipedia.org/wiki/.NET_Persistence_API

Thanks for the information, but if you're planning on hanging around please don't necro 18 month-old threads in order to get a link in them.

Markbnj
Programming Moderator

Last edited by Markbnj; 03-14-2012 at 10:57 AM.
mosheho is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:51 PM.


Powered by vBulletin® Version 3.8.8 Alpha 1
Copyright ©2000 - 2015, vBulletin Solutions, Inc.