예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaspheaderlistcriteria(ref DataRow row, Vaspheaderlistcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("verno", entity.verno);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Vaspheaderlistcriteria BuildVaspheaderlistcriteriaFromRow(DataRow row)
        {
            Vaspheaderlistcriteria entity = new Vaspheaderlistcriteria();

            entity.prod             = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse             = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.verno            = row.IsNull("verno") ? 0 : row.Field <int>("verno");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }