Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGetlabeludccriteria(ref DataRow row, Getlabeludccriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("usageType", entity.usageType);
     row.SetField("recordType", entity.recordType);
     row.SetField("printerId", entity.printerId);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Getlabeludccriteria BuildGetlabeludccriteriaFromRow(DataRow row)
        {
            Getlabeludccriteria entity = new Getlabeludccriteria();

            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.usageType  = row.IsNull("usageType") ? string.Empty : row.Field <string>("usageType");
            entity.recordType = row.IsNull("recordType") ? 0 : row.Field <int>("recordType");
            entity.printerId  = row.IsNull("printerId") ? string.Empty : row.Field <string>("printerId");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }