/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPtxqueuedeletecriteria(ref DataRow row, Ptxqueuedeletecriteria entity) { row.SetField("cono", entity.cono); row.SetField("orderno", entity.orderno); row.SetField("ordersuf", entity.ordersuf); row.SetField("rwid", entity.rwid.ToByteArray()); }
public static Ptxqueuedeletecriteria BuildPtxqueuedeletecriteriaFromRow(DataRow row) { Ptxqueuedeletecriteria entity = new Ptxqueuedeletecriteria(); entity.cono = row.IsNull("cono") ? 0 : row.Field <int>("cono"); 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); }