A
A
AspMaster2019-09-25 20:42:08
ASP.NET
AspMaster, 2019-09-25 20:42:08

How to create an auto-incrementing property?

I have an entity which has an Id (guid). I want to add a number field (also unique), but only id can be auto-incremented. How to do this for an arbitrary field without making it an id ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2019-09-26
@yarosroman

https://www.entityframeworktutorial.net/code-first...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question