Is it any better? I heard the CodeFirst extension but is it ready for primetime. Please share your experience with development, any performance overheads, etc.
How does EF4 compare with NHibernate?
708 Views Asked by Srikar Doddi At
2
There are 2 best solutions below
2
JackD
On
As for me - I prefer EF but with some enhancements. Basically EF offers to you the following advantages:
- Visual Model Editor
- Database/Model Update wizard (instead of manual XML changes - what is terrible for me)
Also, I'm using 3-rd party commercial tools based on EF and L2S (LinqConnect) that provide for me the following features:
- Geography support
- Optimized SQL generation
- Product absolutely integrated to Visual Studio
- Smart database update wizard (synchronization mode)
Related Questions in NHIBERNATE
- Deleting Orphans with Fluent NHibernate
- NHibernate ICompositeUserType split string columns
- NHibernate Second Level Cache for Collections is Slow
- NHibernate - using CreateMultiQuery
- NHibernate.Mapping Exception. No persister for Namespace.className
- Trouble combining Linq Expressions into a Func
- Join Tables using Fluent Nhibernate
- NHibernate - NonUniqueObjectException
- Restrictions.Disjunction().Add(Subqueries.WhereValue(1)
- Nhibernate: Exception occurred getter of id
- Mapping to Date part of Sql DateTime
- Select from Table Valued Function nhibernate
- NHibernate Filtered Child Collection Lazy Loaded even with eager fetch specified
- Parallel Transactions in distinct Session in NHibernate / SQL Server
- updating M:N data using session nhibernate .Net MVC
Related Questions in ENTITY-FRAMEWORK
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- How to get primary key value with Entity Framework Core
- How do you add extra property using join
- Is there anyway to set the relationship of many tables from Model?
- ORM Code First versa Database First in Production
- MVC : Insert data to two tables
- Cannot insert a null into column MVC ASP.NET
- System.ComponentModel.DataAnnotations.Schema namespace conflict
- EF 6 interceptor to set connectionstring
- IQueryable<T> OrderBy<T> Extension Fails with Foreign Key Property
- Linq to Entities filter navigation collection properties
- How to generate entity framework code-first migrations without using the package manager console?
- Entity Framework and abstract class
- Validation DataGridView Windows Forms
- Require tool to trace the LInq Queries in Oracle
Related Questions in FLUENT-NHIBERNATE
- Deleting Orphans with Fluent NHibernate
- Fluent Nhibernate join three tables
- NHibernate join does not fully populate objects within transactions
- Join Tables using Fluent Nhibernate
- NHibernate - NonUniqueObjectException
- Mapping to Date part of Sql DateTime
- Search in Fluent-NHibernate using session.QueryOver<> return empty
- How to change default FlushMode to Commit in C#?
- Fluent NHibernate - exception occurred during configuration
- NHibernate : No update with composite key
- Fluent NHibernate mapping via middle table
- Fluent Nhibernate and quartz error configuration section not found in application configuration file
- Mapping byte[] with NHibernate 4 throws array exception from .net
- Mysql rank based on column using FluentNhibernate
- NHibernate - How to work around the parameter count limitation in SQL Server
Related Questions in ENTITY-FRAMEWORK-4
- Duplicate record issue when using Entity Framework and concurrent connections
- Return to same page
- Entity Framework mapping exclude database table columns
- How to Deep Clone/Copy and entity in entity Framework 4.0?
- Removing one child detaches all others in Entity Framework C#
- How to return just first parent element, but many children and grandchildren in Linq with Entity Framework - SYBASE ASE Connector bug
- Entity Framework Database First not bringing in functions
- Entity Framework 6 AttachAsModified
- EntityFramework 7 Unit Testing Calls to Stored Procedure
- Entity Framework + Web API, return Entities (Complex, collections, etc) outside DbContext
- Entity Framework SaveChanges does not work
- How to make a web service for asp.net web api built using Entity Framework?
- What is the correct way to change the context when using a DataGridView?
- How to use LINQ to Entities to make a left join using a static value
- Why a collection is not updated when the EF context changes are cancelled?
Related Questions in ENTITY-FRAMEWORK-CTP5
- Inserting a decimal into sql cause inserting a zero number Instead of a decimal number near zero
- LINQ TO SQL or Entity Framework 4 Code-First for a domain driven project?
- No Key generated with CTP and Database First
- ctp5 poco, base table objects and domain models
- EF Linq to entities query generating UNION for TPC CTP5 code-first entity
- How to use DbContext.Database.SqlQuery<TElement>(sql, params) with stored procedure? EF Code First CTP5
- UnitOfWork Implementation
- EF CTP5 POCO, base class and how to implement inheritance
- Turn Off Object Caching in Entity Framework CTP5
- Where should i use the unit of work ? and why?
- How does EF4 compare with NHibernate?
- Entity Framework Code First CTP5 : How to define non primitive types
- EntityFramework CTP5 DbContext T4 Template "virtual" keyword
- Entity Framework 4 ctp5 one table has two foreign keys to the same table
- EntityFramework CTP5 change tracking
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think this is a timely question, as I was wondering the exact same thing. I am trying to create a serious e-commerce model and I am trying to keep my POCOs free of persistence concerns as well as trying to stay true to Domain Driven Design. So far, I am very wary, and I am on the fence about whether I should jump ship to NHibernate. The only thing keeping me from doing so is that I assume that Microsoft will improve (and quickly).
Some of the biggest problems so far:
And this is just the tip of the iceberg: I am only starting to learn EF4 and I'm running into awful roadblocks. As I think of more reasons, I'll add them here. I'm still struggling through it.
(I wonder whether the community will give it another vote of "no confidence.")
More: