private EntityState(Guid group, EntityName name, IImmutableSet<EntityValueSetState> values, bool deleted) { _group = group; _name = name; _values = values; LastModifiedUtcDate = DateTime.UtcNow; IsDeleted = deleted; }
private EntityState(Guid group, EntityName name, IImmutableSet <EntityValueSetState> values, bool deleted) { _group = group; _name = name; _values = values; LastModifiedUtcDate = DateTime.UtcNow; IsDeleted = deleted; }
public EntityState ChangeName(EntityName name) { return(new EntityState(_group, name, _values, false)); }
private EntityState(Guid group, EntityName name, IImmutableSet <EntityValueSetState> values) : this(group, name, values, false) { }
public EntityState(Guid group, EntityName name) : this(group, name, ImmutableHashSet.Create <EntityValueSetState>()) { CreatedUtcDate = DateTime.UtcNow; }
public void ChangeEntityName(EntityName name) { ApplyChange(new EntityRenamedEvent(GetIdentity(), name)); }
public Entity(Guid identity, Guid metadataDefinitionGroupIdentity, EntityName name) { ApplyChange(new EntityCreatedEvent(identity, metadataDefinitionGroupIdentity, name)); }
public EntityState ChangeName(EntityName name) { return new EntityState(_group, name, _values, false); }
private EntityState(Guid group, EntityName name, IImmutableSet<EntityValueSetState> values) : this(group, name, values, false) { }
public EntityState(Guid group, EntityName name) : this(group, name, ImmutableHashSet.Create<EntityValueSetState>()) { CreatedUtcDate = DateTime.UtcNow; }