zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

7 results in tag: value-objects

Map custom list of object as json in Entity Framework

I'm practicing DDD, and I have a class which is a so called ...ValueObject.... Inside an ...Entity... I have custom list of that ...ValueObject.... I'm trying to persist that collection as JSON....I have the following classes:...public class User : Entity...
domain-driven-design entity-framework entity-framework-core value-objects
asked by Vivendi

Entity Framework Core: Fail to update Entity with nested value objects

I have an entity that has a value object and this value object has another value object. My issue is that when updating the entity along with the value objects, the entity with the parent value object get updated but the child value object didn't. note, i...
c# entity-framework-core entity-framework-core-2.1 value-objects
asked by yo2011

Value Object as Invalid Object in asp.net core 2.1

I have been using value object in asp.net core 2.0 project, which was running properly on that project. ...I updated the project to 2.1 and it is giving me an error as ...Invalid object name 'EntityAdress'....Entity:...public class Company : AuditableEnti...
asp.net-core-2.1 c# entity-framework-core value-objects
asked by aakash

EF Core and DDD: Store ValueObjects in the same table as Entities, also use parametrized constructors to set property values on Entities

Consider these simple classes. They belong to a simple application with Domain Driven Design (DDD) principles, and as such every Entity and ValueObject receives its property values through the constructor while hiding the default, parameter-less construct...
c# domain-driven-design entity entity-framework-core value-objects
asked by TheAgent

How can I create a Required Owned Type with Entity Framework Core 3.0

I'm struggling creating a non-nullable/required Owned Type with Entity Framework Core. I'm using EF Core 3.0 against PostgreSQL database....My value object:... public class PersonName { public PersonName(string name) { t...
c# entity-framework-core owned-types postgresql value-objects
asked by super_mario

Entity Framework Core Entity > Value Object > Entity Relationship

I have the following classes...public class Slot : Entity { public SnackPile SnackPile { get; set; } public SnackMachine SnackMachine { get; set; } public int Position { get; } protected Slot() { } public Slot(SnackMachine sn...
domain-driven-design entity entity-framework-core relationship value-objects
asked by visualbam

Extra join in query for value objects in Entity Framework Core

In Entity Framework Core 3.1.3, I have used the value object feature. In the query side, the problem is an extra left join exists in T-SQL. This extra join results in problems in terms of performance. In the following code Student is an Entity type and ..
.net-core asp.net-core entity-framework-core value-objects
asked by Mohammad Akbari

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!