Is there any way to set the properties of a variable by default to the initials of variables?
Something like public string obsUsuario { get; set; }
, all of which start with obs default to the IsOptional
property, (or / and other properties) without having to declare every time for each variable? / p>
modelBuilder.Entity<Usuarios>().Property(prop => prop.obsUsuario).IsOptional();