示例#1
0
        public static Icrunnumberlookupcriteria BuildIcrunnumberlookupcriteriaFromRow(DataRow row)
        {
            Icrunnumberlookupcriteria entity = new Icrunnumberlookupcriteria();

            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.runno     = row.IsNull("runno") ? 0 : row.Field <int>("runno");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcrunnumberlookupcriteria(ref DataRow row, Icrunnumberlookupcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("runno", entity.runno);
     row.SetField("userfield", entity.userfield);
 }