Generate sequence for field

0

Is it possible to create a sequence 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 sequence for DocumentoNumero , but at the same time I have id already doing this and need to keep it this way.     

asked by anonymous 11.05.2017 / 15:44

1 answer

0

link

code taken from this link.

private string documentoNumero;
     public string DocumentoNumero
     {
          get { return documentoNumero; }
          set
          {
               // aqui podes por a logica do campo jobTitle = value
          }
     }
    
11.05.2017 / 15:57