示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcseegetlistcriteria(ref DataRow row, Icseegetlistcriteria entity)
 {
     row.SetField("custno", entity.custno);
     row.SetField("shipto", entity.shipto);
     row.SetField("prod", entity.prod);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Icseegetlistcriteria BuildIcseegetlistcriteriaFromRow(DataRow row)
        {
            Icseegetlistcriteria entity = new Icseegetlistcriteria();

            entity.custno    = row.IsNull("custno") ? decimal.Zero : row.Field <decimal>("custno");
            entity.shipto    = row.IsNull("shipto") ? string.Empty : row.Field <string>("shipto");
            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }