When I call my method to write, the whole object comes filled, but when the savechanges () is called it says IdBalance is null and yet it has the value of 1. Insert method:
public virtual void Inserir(T item)
{
contexto.Set<T>().Add(item);
contexto.SaveChanges();
}
The Item object is fully populated. See below an image on top of the object before recording (savechanges)