Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • In your opinion, how these classes are related with Entity classes ( dbcontext models)? I mean, MovieRating is an entity? Inherits from and entity? Contains an entity for persist operation ? Commented Mar 29, 2019 at 15:28
  • @daniherrera: It really depends on the ORM you are using. Entity Framework for the .NET Framework treats your "entities" as a data transfer objects between database and application. In this case, I have no idea what the business classes would look like (I've never done this approach). Entity Framework for .NET Core gives you more robust mapping options, allowing you to map database tables directly to your business classes (e.g. Domain Models). NHibernate, which I've used more, gives you a similar level of flexibility. Commented Mar 29, 2019 at 17:40
  • At this moment I use .Net Core. But I see EF core closer to EF6, I don't see why EF Core allows you to map Business Objects as entities and EF6 not. Can you elaborate? Also, do you know any open business project with EF Core, business objects, business rules, ... to learn from it. Thanks and sorry about off topic questions. Commented Mar 29, 2019 at 17:49