예제 #1
0
 protected SortInputTypeDescriptor(
     IDescriptorContext context,
     Type entityType,
     string?scope)
     : base(context)
 {
     Convention            = context.GetSortConvention(scope);
     Definition.EntityType = entityType ??
                             throw new ArgumentNullException(nameof(entityType));
     Definition.RuntimeType            = typeof(object);
     Definition.Name                   = Convention.GetTypeName(entityType);
     Definition.Description            = Convention.GetTypeDescription(entityType);
     Definition.Fields.BindingBehavior = context.Options.DefaultBindingBehavior;
     Definition.Scope                  = scope;
 }