public static ISortConventionDescriptor AddDefaultOperations( this ISortConventionDescriptor descriptor) { if (descriptor is null) { throw new ArgumentNullException(nameof(descriptor)); } descriptor.Operation(DefaultSortOperations.Ascending).Name("ASC"); descriptor.Operation(DefaultSortOperations.Descending).Name("DESC"); return(descriptor); }
protected override void Configure(ISortConventionDescriptor descriptor) { descriptor.Operation(DefaultSortOperations.Ascending).Name("ASC"); }
protected override void Configure(ISortConventionDescriptor descriptor) { descriptor.AddDefaults(); descriptor.Operation(DefaultSortOperations.Ascending).Name("Different"); }