0
It is possible for me to create a quence without changing the field to id?
Id(x => x.Id).GeneratedBy.Identity();
Map(x => x.DocumentoNumero);
Using this example, I would like to keep a quence for DocumentoNumero
, but at the same time I have id that is already doing this and I need to keep it this way.
what is the purpose of documentNumero? is to be equal to id?
– sir_ask
No, the id keeps generating in sequence for each document.. Documentnumero will not be unique, you should only generate a sequence when prompted or if it is saved as null
– ebitencourt
http://stackoverflow.com/questions/8990319/have-a-custom-setter-on-property-for-ef-code-first-model-entity I’m not sure, you want to have control over the "set" of that property. take a look at this link
– sir_ask