コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromArsptgetlistcriteria(ref DataRow row, Arsptgetlistcriteria entity)
 {
     row.SetField("custno", entity.custno);
     row.SetField("shipto", entity.shipto);
     row.SetField("multiplierpricetype", entity.multiplierpricetype);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Arsptgetlistcriteria BuildArsptgetlistcriteriaFromRow(DataRow row)
        {
            Arsptgetlistcriteria entity = new Arsptgetlistcriteria();

            entity.custno = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno");
            entity.shipto = row.IsNull("shipto") ? string.Empty : row.Field <string>("shipto");
            entity.multiplierpricetype = row.Field <bool>("multiplierpricetype");
            entity.recordcountlimit    = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield           = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }