I'm having error with the column Id cannot contain null values but i set to true on IsDbGenerated. what am i doing wrong?
private int id;
[Column(IsPrimaryKey=true, CanBeNull=false, DbType="int", IsDbGenerated=true)]
public int Id
{
get { return id; }
set
{
if (id != value)
{
id = value;
RaisePropertyChanged("Id");
}
}
}