Please see 'Add your own code to the generated classes' in the documentation and add code like this:
if(this.Fields.State == EntityState.New)
{
this.FieldName = 10;
}
to the initclass method of the entity. (initclassempty). Either to the user code region, or use an include template.