예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeircustomercreditcriteria(ref DataRow row, Oeircustomercreditcriteria entity)
 {
     row.SetField("custno", entity.custno);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Oeircustomercreditcriteria BuildOeircustomercreditcriteriaFromRow(DataRow row)
        {
            Oeircustomercreditcriteria entity = new Oeircustomercreditcriteria();

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