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?
710 views Asked by Srikar Doddi At
2
There are 2 answers
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
- Possible to get nested proxies of hierarchical data in one query using NHibernate?
- ISession.Load(id) "Creating a proxy instance failed" "Sequence contains more than one matching element"
- RedundantArgumentMatcherException in azure pipeline when field is used and not when using local variable
- Specify entity / SQL insertion order in NHibernate transaction without multiple flushes
- NHibernate: Entities Mapped Incorrectly Despite Correct Configuration
- How to get all objects with parameters of other tables in NHibernate?
- Which version of Nhibernate works with .NET 6 & Visual Studio 2022?
- Writing NetTopologysuite Point geometry to PostgreSQL with fluent nhibernate fails due to custom type mapping
- nHibernate: SessionFactory.Evict(type) not working as expected
- Nhibernate - eager fetching collections in collections with linq
- NHibernate new version upgrade
- How to reference both entities when having only one column in one table in Fluent Nhibernate?
- ORA-22835: Insufficient buffer size for converting CLOB to CHAR or BLOB to RAW (actual: 81863, maximum: 2000)
- NHibernate to return records, that contain a value in the List<string>
- Select items from a group by where count is larger than 1
Related Questions in ENTITY-FRAMEWORK
- Query (or LINQ in Entity Framework) for getting user's rank
- I'm trying to create a user with identity in .NET 8 with Entity Framework and I'm getting the following error, both in MySQL and SQL Server
- Entity Framework, Error when deleting data from multiple tables at the same time
- The instance of entity type 'User' cannot be tracked because another instance with the same key value for is already being tracked. Not structural
- Is it a good idea to use EF with Supabase?
- ModelState.IsValid is false when its Data Model Concurrency Token is non nullable
- EF6 Find function always go to the DB
- A second operation started on this context before a previous operation completed. in .NET Core
- Internal .NET Framework Data Provider error 1 in EF
- why cannot dotnet ef tools find my installed dotnet sdk and runtime
- Blazor hybrid cant add migration
- Access to all types, classes and interfaces from multiple projects through reflection in C#
- how to Store/Map Complex data type using EF?
- The database operation was expected to affect 1 row(s), on UpdateAsync
- Is it possible to generate database-agnostic migrations with Entity Framework?
Related Questions in FLUENT-NHIBERNATE
- Exception when using Sqlite with Nhibernate for integration tests
- NHibernate: Entities Mapped Incorrectly Despite Correct Configuration
- How to get all objects with parameters of other tables in NHibernate?
- Writing NetTopologysuite Point geometry to PostgreSQL with fluent nhibernate fails due to custom type mapping
- How to reference both entities when having only one column in one table in Fluent Nhibernate?
- Installing FluentNHibernate creates conflicts between different versions of "NHibernate"
- How to join multible Tables using linq with fluent nHibernate (left join)?
- Select items from a group by where count is larger than 1
- NHibernate OrchardCMS and Long Id: object references an unsaved transient instance
- HasMany mapping on child tables on loose foreign key with different data type
- Fluent nhibernate BuildSessionFactory with Microsoft.Data.Sqlite is not Working
- Map a HasMany relationship without any key column whatsoever - Where() only
- Select data from a sub-select
- How to use fluent nHibernate from an ArcGIS Pro 3.1 AddIn with C#?
- Fluent Nhibernate HasMany Duplicate Insert Problem
Related Questions in ENTITY-FRAMEWORK-4
- How can i bind same column in DbModelBuilder for IdentityUser's two different properties
- how to make a relationship between 3 tables using the Join() method and using two values as a rule Entity Framework
- Linq to SQL: GroupBy() and Max() to get set of data
- Migrate from EF to EF Core. Unloaded entity in the For Loop
- How to use translate Max(value) and Group By (Value/100) in VB LINQ?
- C# MVC with Entity Framework Database Initializer failing
- Is it possible to compare with a number in "Where"?
- Function mapping in Entity framework
- EF Core - problem with inheritance from table and use primary key in the next table
- Entity Framework Datetime Conversion
- How to use older version of Entity Framework when updating Model
- Entity Remove() is setting foreign key properties to null
- Passing empty DataTable to SQL Server stored procedure through database context
- Improving performance of Linq to SQL list intersection
- The type of one of the expressions in the join clause is incorrect. Type inference failed in the call to 'Join'.- Linq JOIN with multiple condition
Related Questions in ENTITY-FRAMEWORK-CTP5
- Inserting a decimal into sql cause inserting a zero number Instead of a decimal number near zero
- Inheritance with EF Code First – Table per Type (TPT)
- Issue loading child entity of a parent entity. Unidirectional mapping and 1 to 0..1 relationship with a Shared primary Key?
- What Causes The INSERT statement conflicted with the FOREIGN KEY constraint?
- Mapping tables in Entity Framework
- How to save a server generated complex object tree with entities that are not yet exsisting in the database?
- One-To-Many Entity Framework 5 Update with code first
- Avoiding Circular referencing providing too much data
- How can I have a Foo with exactly one Bar in EF 5 Code First
- How can I create a 1:1 relationship in Entity Framework?
- Entity Framework 5 - Could not load file or assembly EntityFramework, Version=5.0.0.0
- Many to many relation with the same table with EF4.3 Code First
- Transparently converting nullable values into non-nullable values in Entity Framework
- What is the Default Database for Entities Code-First without defined Connection String?
- no key defined EntityFramework CTP5
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?
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)
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: