/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromKpewactions(ref DataRow row, Kpewactions entity) { row.SetField("seqno", entity.seqno); row.SetField("btnaccept", entity.btnaccept); row.SetField("btncancel", entity.btncancel); row.SetField("btndelete", entity.btndelete); row.SetField("btnclear", entity.btnclear); row.SetField("print", entity.print); row.SetField("snlots", entity.snlots); row.SetField("extendinfo", entity.extendinfo); row.SetField("components", entity.components); row.SetField("woties", entity.woties); row.SetField("userfield", entity.userfield); }
public static Kpewactions BuildKpewactionsFromRow(DataRow row) { Kpewactions entity = new Kpewactions(); entity.seqno = row.IsNull("seqno") ? 0 : row.Field <int>("seqno"); entity.btnaccept = row.Field <bool>("btnaccept"); entity.btncancel = row.Field <bool>("btncancel"); entity.btndelete = row.Field <bool>("btndelete"); entity.btnclear = row.Field <bool>("btnclear"); entity.print = row.Field <bool>("print"); entity.snlots = row.Field <bool>("snlots"); entity.extendinfo = row.Field <bool>("extendinfo"); entity.components = row.Field <bool>("components"); entity.woties = row.Field <bool>("woties"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }