I notice that all properties of my object that are leaving blank on client-side are staying null on server-side when binded.
This will eventually raise null object exception while doing some LINQ Where condition later on since the string property is null instead of empty.
I already try to add a CustomMetadataProvider with context.DisplayMetadata.ConvertEmptyStringToNull = false; as dicuss here ModelBinding but with no luck.
providers = await dbData.Providers.AsNoTracking().
OrderBy(order)
.Where(q =>
(query.search == null ||
q.No.ToString().Contains(query.search) ||
q.Name.Contains(query.search) ||
q.Address.Contains(query.search) ||
q.PhoneFax.Contains(phoneQuery) ||
q.PhoneNumber.Contains(phoneQuery) ||
q.PhoneTollFree.Contains(phoneQuery)) && (query.getDeleted || !q.Deleted))
.Skip((query.limit * (query.page - 1))).Take(query.limit)
.AsNoTracking().ToArrayAsync();