4
Is there any way to define the properties of a variable as default by the initials of the variables?
Something like public string obsUsuario { get; set; }
, all of which start with Obs by default the property IsOptional
, (or/and other properties) without having to declare each time for each variable?
modelBuilder.Entity<Usuarios>().Property(prop => prop.obsUsuario).IsOptional();
Cool, I can even use one
||
here for more fields. type.Where(p => p.Name.StartsWith("descr") || p.Name.StartsWith("obs"))
, this will help me a lot. vlw– Marco Souza