I'm trying to add an Account id to Contact but when I do the insert and than I check the Contact just created it appear null.
I'm using the following code:
Account Acc = [SELECT id FROM Account WHERE Name = 'pierfrancoForte' LIMIT 1];
Contact c = new Contact(FirstName ='GianPoldo', LastName='Test');
c.Account = Acc;
insert c;
I've also checked the Acc object by debug function and it is not null,
but when i check the record on the db it is null: