コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        public void ReLabel(MetadataDefinitionDescription description)
        {
            if (description == null)
            {
                throw new InvariantGuardFailureException("description");
            }

            ApplyChange(new ReLabelMetadataDefinitionDescriptionEvent(GetIdentity(), description.Description));
        }
コード例 #4
0
 public MetadataDefinition(Guid id, MetadataDefinitionName name, MetadataDefinitionDescription description, IDataType datatype, string regex)
 {
     ApplyChange(new MetadataDefinitionCreatedEvent(id, name, datatype, regex, description));
 }
コード例 #5
0
 public MetadataDefinitionState ReLabel(MetadataDefinitionDescription desc)
 {
     return new MetadataDefinitionState(_name, _datatype, _regex, _allowedValues,desc);
 }
コード例 #6
0
 public MetadataDefinitionState ReLabel(MetadataDefinitionDescription desc)
 {
     return(new MetadataDefinitionState(_name, _datatype, _regex, _allowedValues, desc));
 }