chsakell/dotnetcore-entityframework-api

Id is negative number

sajidali2444 opened this issue · 0 comments

Hi,
can you please give me direction what i am doing wrong
here is sample
public class Post: IEntityBase
{
public int Id{get;set;}
}
Id alwyas negative number on add or get what is wroing
as i set database generted option to identity and kye but still is negative