public MetadataDefinitionState(MetadataDefinitionName name, IDataType datatype, string regex, IImmutableSet<AllowableValue> allowedValues, MetadataDefinitionDescription desc, bool isDeleted) : this(name, datatype, regex, allowedValues) { _description = desc; CreatedUtcDate = DateTime.UtcNow; IsDeleted = isDeleted; }
public MetadataDefinitionState(MetadataDefinitionName name, IDataType datatype, string regex, IImmutableSet <AllowableValue> allowedValues, MetadataDefinitionDescription desc, bool isDeleted) : this(name, datatype, regex, allowedValues) { _description = desc; CreatedUtcDate = DateTime.UtcNow; IsDeleted = isDeleted; }
public void ReLabel(MetadataDefinitionDescription description) { if (description == null) { throw new InvariantGuardFailureException("description"); } ApplyChange(new ReLabelMetadataDefinitionDescriptionEvent(GetIdentity(), description.Description)); }
public MetadataDefinition(Guid id, MetadataDefinitionName name, MetadataDefinitionDescription description, IDataType datatype, string regex) { ApplyChange(new MetadataDefinitionCreatedEvent(id, name, datatype, regex, description)); }
public MetadataDefinitionState ReLabel(MetadataDefinitionDescription desc) { return new MetadataDefinitionState(_name, _datatype, _regex, _allowedValues,desc); }
public MetadataDefinitionState ReLabel(MetadataDefinitionDescription desc) { return(new MetadataDefinitionState(_name, _datatype, _regex, _allowedValues, desc)); }