Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasgtglfetch(ref DataRow row, Sasgtglfetch entity)
 {
     row.SetField("tariffcd", entity.tariffcd);
     row.SetField("countryoforigin", entity.countryoforigin);
     row.SetField("tariffglno", entity.tariffglno);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Sasgtglfetch BuildSasgtglfetchFromRow(DataRow row)
        {
            Sasgtglfetch entity = new Sasgtglfetch();

            entity.tariffcd        = row.IsNull("tariffcd") ? string.Empty : row.Field <string>("tariffcd");
            entity.countryoforigin = row.IsNull("countryoforigin") ? string.Empty : row.Field <string>("countryoforigin");
            entity.tariffglno      = row.IsNull("tariffglno") ? string.Empty : row.Field <string>("tariffglno");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }