Skip to content
View nickalbrecht's full-sized avatar

Block or report nickalbrecht

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
nickalbrecht/README.md

Currently working to maintain and develop applications in ASP.NET Core

Pinned Loading

  1. SelectListItem Extension Methods for... SelectListItem Extension Methods for DropDowns in MVC Core. Added ability to specify the option's Group, and for some bug fixes, more XML docs
    1
    public static class SelectListExtensionMethods
    2
    {
    3
        /// <summary>
    4
        /// The SelectListItem to use by default as the placeholder for select lists generated by these extension methods when the user needs to pick a value.
    5
        /// </summary>
  2. Updated implementation of `BeginColl... Updated implementation of `BeginCollectionItem` to support nesting, not ignore the original `HtmlFieldPrefix`, and also provide overloads to let me decide the ID to use. Refactored to be a bit cleaner
    1
    public static class CollectionEditingHtmlExtensions
    2
    {
    3
        /// <summary>
    4
        /// Begins a collection item by inserting a hidden field for the index value
    5
        /// </summary>
  3. Attribute to mark properties backed ... Attribute to mark properties backed by primitive types or structs (int, DateTime, Guid, etc) as requiring a value other than their default value. `RequireNonDefaultAttribute` alone is enough for Server side validation. If you want to use this for client side as well, you'll need the other files too.
    1
    using System.ComponentModel.DataAnnotations;
    2
    using Microsoft.AspNetCore.Mvc.DataAnnotations;
    3
    using Microsoft.Extensions.Localization;
    4
    
                  
    5
    public class CustomValidationAttributeAdapterProvider : IValidationAttributeAdapterProvider