示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoblanketupdbyreleasecrit(ref DataRow row, Poblanketupdbyreleasecrit entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("customparam", entity.customparam);
 }
示例#2
0
        public static Poblanketupdbyreleasecrit BuildPoblanketupdbyreleasecritFromRow(DataRow row)
        {
            Poblanketupdbyreleasecrit entity = new Poblanketupdbyreleasecrit();

            entity.pono        = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf       = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.lineno      = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            return(entity);
        }