Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasggstvatadditionalsave(ref DataRow row, Sasggstvatadditionalsave entity)
 {
     row.SetField("state", entity.state);
     row.SetField("callingfunction", entity.callingfunction);
     row.SetField("glyear", entity.glyear);
     row.SetField("acctno", entity.acctno);
     row.SetField("acctdesc", entity.acctdesc);
     row.SetField("arcashglno", entity.arcashglno);
     row.SetField("arcashgldesc", entity.arcashgldesc);
     row.SetField("taxmethodty", entity.taxmethodty);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Sasggstvatadditionalsave BuildSasggstvatadditionalsaveFromRow(DataRow row)
        {
            Sasggstvatadditionalsave entity = new Sasggstvatadditionalsave();

            entity.state           = row.IsNull("state") ? string.Empty : row.Field <string>("state");
            entity.callingfunction = row.IsNull("callingfunction") ? string.Empty : row.Field <string>("callingfunction");
            entity.glyear          = row.IsNull("glyear") ? 0 : row.Field <int>("glyear");
            entity.acctno          = row.IsNull("acctno") ? string.Empty : row.Field <string>("acctno");
            entity.acctdesc        = row.IsNull("acctdesc") ? string.Empty : row.Field <string>("acctdesc");
            entity.arcashglno      = row.IsNull("arcashglno") ? string.Empty : row.Field <string>("arcashglno");
            entity.arcashgldesc    = row.IsNull("arcashgldesc") ? string.Empty : row.Field <string>("arcashgldesc");
            entity.taxmethodty     = row.IsNull("taxmethodty") ? string.Empty : row.Field <string>("taxmethodty");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }