Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSaealistwhse(ref DataRow row, Saealistwhse entity)
 {
     row.SetField("listtype", entity.listtype);
     row.SetField("listvalue", entity.listvalue);
     row.SetField("namedesc", entity.namedesc);
     row.SetField("whseuser", entity.whseuser);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Saealistwhse BuildSaealistwhseFromRow(DataRow row)
        {
            Saealistwhse entity = new Saealistwhse();

            entity.listtype  = row.IsNull("listtype") ? string.Empty : row.Field <string>("listtype");
            entity.listvalue = row.IsNull("listvalue") ? string.Empty : row.Field <string>("listvalue");
            entity.namedesc  = row.IsNull("namedesc") ? string.Empty : row.Field <string>("namedesc");
            entity.whseuser  = row.IsNull("whseuser") ? string.Empty : row.Field <string>("whseuser");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }