private FieldInheritanceDefinitionInfo CreateInfoInstance(FieldDefinition field, FieldInheritanceDefinition inheritance = null) { return new FieldInheritanceDefinitionInfo { DataType = field.DataType, FieldId = field.Id, IsActive = inheritance?.IsActive ?? false, Name = field.Name, PropagationMode = inheritance?.PropagationMode ?? Execution.Delayed, Rights = inheritance?.Rights ?? new FieldInheritanceRight[0], Scope = field.Scope, Label = field.Label, Labels = field.Labels, }; }
private FieldInheritanceDefinitionInfo CreateInfoInstance(FieldDefinition field, FieldInheritanceDefinition inheritance = null) { return(new FieldInheritanceDefinitionInfo { DataType = field.DataType, FieldId = field.Id, IsActive = inheritance?.IsActive ?? false, Name = field.Name, PropagationMode = inheritance?.PropagationMode ?? Execution.Delayed, Rights = inheritance?.Rights ?? new FieldInheritanceRight[0], Scope = field.Scope, Label = field.Label, Labels = field.Labels, }); }