public static Sasttpdst BuildSasttpdstFromRow(DataRow row) { Sasttpdst entity = new Sasttpdst(); entity.vendno = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSasttpdst(ref DataRow row, Sasttpdst entity) { row.SetField("vendno", entity.vendno); row.SetField("userfield", entity.userfield); }