/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromWteedetaillogoff(ref DataRow row, Wteedetaillogoff entity) { row.SetField("wtno", entity.wtno); row.SetField("wtsuf", entity.wtsuf); row.SetField("jrnlno", entity.jrnlno); row.SetField("userfield", entity.userfield); }
public static Wteedetaillogoff BuildWteedetaillogoffFromRow(DataRow row) { Wteedetaillogoff entity = new Wteedetaillogoff(); entity.wtno = row.IsNull("wtno") ? 0 : row.Field <int>("wtno"); entity.wtsuf = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf"); entity.jrnlno = row.IsNull("jrnlno") ? 0 : row.Field <int>("jrnlno"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }