Beispiel #1
0
 private EntityState(Guid group, EntityName name, IImmutableSet<EntityValueSetState> values, bool deleted)
 {
     _group = group;
     _name = name;
     _values = values;
     LastModifiedUtcDate = DateTime.UtcNow;
     IsDeleted = deleted;
 }
Beispiel #2
0
 private EntityState(Guid group, EntityName name, IImmutableSet <EntityValueSetState> values, bool deleted)
 {
     _group              = group;
     _name               = name;
     _values             = values;
     LastModifiedUtcDate = DateTime.UtcNow;
     IsDeleted           = deleted;
 }
Beispiel #3
0
 public EntityState ChangeName(EntityName name)
 {
     return(new EntityState(_group, name, _values, false));
 }
Beispiel #4
0
 private EntityState(Guid group, EntityName name, IImmutableSet <EntityValueSetState> values) : this(group, name, values, false)
 {
 }
Beispiel #5
0
 public EntityState(Guid group, EntityName name) : this(group, name, ImmutableHashSet.Create <EntityValueSetState>())
 {
     CreatedUtcDate = DateTime.UtcNow;
 }
Beispiel #6
0
 public void ChangeEntityName(EntityName name)
 {
     ApplyChange(new EntityRenamedEvent(GetIdentity(), name));
 }
Beispiel #7
0
 public Entity(Guid identity, Guid metadataDefinitionGroupIdentity, EntityName name)
 {
     ApplyChange(new EntityCreatedEvent(identity, metadataDefinitionGroupIdentity, name));
 }
Beispiel #8
0
 public EntityState ChangeName(EntityName name)
 {
     return new EntityState(_group, name, _values, false);
 }
Beispiel #9
0
 private EntityState(Guid group, EntityName name, IImmutableSet<EntityValueSetState> values)
     : this(group, name, values, false)
 {
 }
Beispiel #10
0
 public EntityState(Guid group, EntityName name)
     : this(group, name, ImmutableHashSet.Create<EntityValueSetState>())
 {
     CreatedUtcDate = DateTime.UtcNow;
 }