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