/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSastcglfetch(ref DataRow row, Sastcglfetch entity) { row.SetField("currencyty", entity.currencyty); row.SetField("glno", entity.glno); row.SetField("rvglno", entity.rvglno); row.SetField("userfield", entity.userfield); }
public static Sastcglfetch BuildSastcglfetchFromRow(DataRow row) { Sastcglfetch entity = new Sastcglfetch(); entity.currencyty = row.IsNull("currencyty") ? string.Empty : row.Field <string>("currencyty"); entity.glno = row.IsNull("glno") ? string.Empty : row.Field <string>("glno"); entity.rvglno = row.IsNull("rvglno") ? string.Empty : row.Field <string>("rvglno"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }