/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromOelinepricetabinfo(ref DataRow row, Oelinepricetabinfo entity) { row.SetField("currproc", entity.currproc); row.SetField("msg1", entity.msg1); row.SetField("msg2", entity.msg2); row.SetField("msg3", entity.msg3); row.SetField("msg4", entity.msg4); row.SetField("msg5", entity.msg5); row.SetField("msg6", entity.msg6); row.SetField("msg7", entity.msg7); row.SetField("msg8", entity.msg8); row.SetField("msg9", entity.msg9); row.SetField("msg10", entity.msg10); row.SetField("msg11", entity.msg11); row.SetField("msg12", entity.msg12); row.SetField("msg13", entity.msg13); row.SetField("msg14", entity.msg14); row.SetField("msg15", entity.msg15); row.SetField("msg16", entity.msg16); row.SetField("msg17", entity.msg17); row.SetField("msg18", entity.msg18); row.SetField("msg19", entity.msg19); row.SetField("msg20", entity.msg20); row.SetField("msg21", entity.msg21); row.SetField("msg22", entity.msg22); row.SetField("msg23", entity.msg23); row.SetField("msg24", entity.msg24); row.SetField("msg25", entity.msg25); row.SetField("userfield", entity.userfield); }
public static Oelinepricetabinfo BuildOelinepricetabinfoFromRow(DataRow row) { Oelinepricetabinfo entity = new Oelinepricetabinfo(); entity.currproc = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc"); entity.msg1 = row.IsNull("msg1") ? string.Empty : row.Field <string>("msg1"); entity.msg2 = row.IsNull("msg2") ? string.Empty : row.Field <string>("msg2"); entity.msg3 = row.IsNull("msg3") ? string.Empty : row.Field <string>("msg3"); entity.msg4 = row.IsNull("msg4") ? string.Empty : row.Field <string>("msg4"); entity.msg5 = row.IsNull("msg5") ? string.Empty : row.Field <string>("msg5"); entity.msg6 = row.IsNull("msg6") ? string.Empty : row.Field <string>("msg6"); entity.msg7 = row.IsNull("msg7") ? string.Empty : row.Field <string>("msg7"); entity.msg8 = row.IsNull("msg8") ? string.Empty : row.Field <string>("msg8"); entity.msg9 = row.IsNull("msg9") ? string.Empty : row.Field <string>("msg9"); entity.msg10 = row.IsNull("msg10") ? string.Empty : row.Field <string>("msg10"); entity.msg11 = row.IsNull("msg11") ? string.Empty : row.Field <string>("msg11"); entity.msg12 = row.IsNull("msg12") ? string.Empty : row.Field <string>("msg12"); entity.msg13 = row.IsNull("msg13") ? string.Empty : row.Field <string>("msg13"); entity.msg14 = row.IsNull("msg14") ? string.Empty : row.Field <string>("msg14"); entity.msg15 = row.IsNull("msg15") ? string.Empty : row.Field <string>("msg15"); entity.msg16 = row.IsNull("msg16") ? string.Empty : row.Field <string>("msg16"); entity.msg17 = row.IsNull("msg17") ? string.Empty : row.Field <string>("msg17"); entity.msg18 = row.IsNull("msg18") ? string.Empty : row.Field <string>("msg18"); entity.msg19 = row.IsNull("msg19") ? string.Empty : row.Field <string>("msg19"); entity.msg20 = row.IsNull("msg20") ? string.Empty : row.Field <string>("msg20"); entity.msg21 = row.IsNull("msg21") ? string.Empty : row.Field <string>("msg21"); entity.msg22 = row.IsNull("msg22") ? string.Empty : row.Field <string>("msg22"); entity.msg23 = row.IsNull("msg23") ? string.Empty : row.Field <string>("msg23"); entity.msg24 = row.IsNull("msg24") ? string.Empty : row.Field <string>("msg24"); entity.msg25 = row.IsNull("msg25") ? string.Empty : row.Field <string>("msg25"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }