Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDeletelabeludccriteria(ref DataRow row, Deletelabeludccriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("recordType", entity.recordType);
     row.SetField("rowID", entity.rowID.ToByteArray());
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Deletelabeludccriteria BuildDeletelabeludccriteriaFromRow(DataRow row)
        {
            Deletelabeludccriteria entity = new Deletelabeludccriteria();

            entity.coNum      = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum      = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.recordType = row.IsNull("recordType") ? 0 : row.Field <int>("recordType");
            entity.rowID      = row.Field <byte[]>("rowID").ToStringEncoded();
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }