File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/NoFrillsTransformation.Plugins.Acumatica Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,18 @@ public void FinishWrite()
126126 bool [ ] isNullable = new bool [ _fieldNames . Length ] ;
127127 for ( int i = 0 ; i < _fieldNames . Length ; ++ i )
128128 {
129- isNullable [ i ] = _entityConfig ? . Table ? . Columns ? [ i ] . Nullable == "true" ;
129+ // Find the field by name in the config file
130+ // and check if it is nullable
131+ // If the field is not found, it is not nullable
132+ isNullable [ i ] = false ;
133+ for ( int j = 0 ; j < _entityConfig ? . Table ? . Columns ? . Length ; ++ j )
134+ {
135+ if ( _fieldNames [ i ] == _entityConfig . Table . Columns [ j ] . Name )
136+ {
137+ isNullable [ i ] = _entityConfig . Table . Columns [ j ] . Nullable == "true" ;
138+ break ;
139+ }
140+ }
130141 }
131142
132143 Comparison < string [ ] > comparison = ( a , b ) =>
You can’t perform that action at this time.
0 commit comments