Skip to content

STD-68 | Organization feature: adjust domain and persistence layer#52

Draft
WerewolfNet wants to merge 2 commits into
devfrom
STD-68
Draft

STD-68 | Organization feature: adjust domain and persistence layer#52
WerewolfNet wants to merge 2 commits into
devfrom
STD-68

Conversation

@WerewolfNet
Copy link
Copy Markdown
Collaborator

No description provided.

@WerewolfNet WerewolfNet self-assigned this Oct 16, 2021
public int OwnerId { get; set; }
public OrganizationStatus Status { get; set; }
public DateTimeOffset DateCreated { get; private set; }
void IWithDateCreated.SetDateCreated(DateTimeOffset value) => DateCreated = value;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, move this property to the last line


namespace StudySharp.Domain.Models
{
public sealed class Organization : IWithDateCreated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe IWithDateModified too?

@@ -0,0 +1,9 @@
namespace StudySharp.Domain.Models
{
public enum AppearanceType
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure we won't have access modifiers for other entities in the future?
Maybe add "Course" to this name, or change it to more corresponding to courses

@@ -4,10 +4,7 @@ namespace StudySharp.Domain.Models
{
public sealed class Teacher
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add DomainUser to Teacher, it may help us in some situations

{
public void Configure(EntityTypeBuilder<Organization> builder)
{
throw new NotImplementedException();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

{
public void Configure(EntityTypeBuilder<OrganizationRepresentative> builder)
{
throw new NotImplementedException();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants