Replies: 2 comments
-
You can put those in the Application project instead of Domain. Because it's not a Domain entity as such. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think it is fine to include these data types in the domain layer. Suggest creating a class to manage configuration, e.g. TodoItemViewConfiguration : IEntityTypeConfiguration, instead of using OnModelCreating. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In OnModelCreating method on my DbContext I have this code:
modelBuilder.Entity<TodoItemView>().HasNoKey().ToView("vReadTodoItems");
vReadTodoItems - it is SQL view to read some data, that i cant read by linq query.
TodoItemView - wrapper on default TodoItem, that has extra properties.
Is the right place to put my TodoItemView class in Domain layer to Views folder?
Beta Was this translation helpful? Give feedback.
All reactions