示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeetprintloadcriteria(ref DataRow row, Oeetprintloadcriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("oeepasecure", entity.oeepasecure);
     row.SetField("oeeppsecure", entity.oeeppsecure);
     row.SetField("oerdsecure", entity.oerdsecure);
     row.SetField("oeepdsecure", entity.oeepdsecure);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Oeetprintloadcriteria BuildOeetprintloadcriteriaFromRow(DataRow row)
        {
            Oeetprintloadcriteria entity = new Oeetprintloadcriteria();

            entity.orderno     = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf    = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.oeepasecure = row.IsNull("oeepasecure") ? 0 : row.Field <int>("oeepasecure");
            entity.oeeppsecure = row.IsNull("oeeppsecure") ? 0 : row.Field <int>("oeeppsecure");
            entity.oerdsecure  = row.IsNull("oerdsecure") ? 0 : row.Field <int>("oerdsecure");
            entity.oeepdsecure = row.IsNull("oeepdsecure") ? 0 : row.Field <int>("oeepdsecure");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }