I'm trying to save changes aplied to field in a entity.
I'm accessing the fields by the name, then apply the changes by AcceptChanges(), and then execute Update(), but the changes aren't stored in the database.
This the code:
TesteTemex _Teste = new TesteTemex( 999 );
for( int i = 1; i <= 10; i++ )
{
for( int j = 1; j <= 3; j++)
{
_Teste.Fields[String.Format( "Tempo{0}{1}", i, j )].CurrentValue = 456;
_Teste.Fields[String.Format( "Tempo{0}{1}", i, j )].AcceptChange();
}
}
result = _Teste.Update();
===========================================
Thanks!