/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPtxqueuebatchdetailhdr(ref DataRow row, Ptxqueuebatchdetailhdr entity) { row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("dfltbatchsize", entity.dfltbatchsize); row.SetField("nodetails", entity.nodetails); row.SetField("rwid", entity.rwid.ToByteArray()); }
public static Ptxqueuebatchdetailhdr BuildPtxqueuebatchdetailhdrFromRow(DataRow row) { Ptxqueuebatchdetailhdr entity = new Ptxqueuebatchdetailhdr(); entity.orderno = row.IsNull("orderno") ? 0 : row.Field <int>("orderno"); entity.ordersuf = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf"); entity.dfltbatchsize = row.IsNull("dfltbatchsize") ? 0 : row.Field <int>("dfltbatchsize"); entity.nodetails = row.IsNull("nodetails") ? 0 : row.Field <int>("nodetails"); entity.rwid = row.Field <byte[]>("rwid").ToStringEncoded(); return(entity); }