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