コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcxrefvendlookupcriteria(ref DataRow row, Icxrefvendlookupcriteria entity)
 {
     row.SetField("vendno", entity.vendno);
     row.SetField("prod", entity.prod);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Icxrefvendlookupcriteria BuildIcxrefvendlookupcriteriaFromRow(DataRow row)
        {
            Icxrefvendlookupcriteria entity = new Icxrefvendlookupcriteria();

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