I want to create a custom attribute that can be used on a property like:
[TrimInputString] public string FirstName { get; set; }
that will
This can be done with Dado.ComponentModel.Mutations.
public class User { [Trim] public string FirstName { get; set; } } // Then to preform mutation var user = new User() { FirstName = " David Glenn " } new MutationContext(user).Mutate();
You can see more documentation here.