Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcsrcostmatrixcriteria(ref DataRow row, Icsrcostmatrixcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("vendno", entity.vendno);
     row.SetField("prodline", entity.prodline);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Icsrcostmatrixcriteria BuildIcsrcostmatrixcriteriaFromRow(DataRow row)
        {
            Icsrcostmatrixcriteria entity = new Icsrcostmatrixcriteria();

            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.vendno    = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            entity.prodline  = row.IsNull("prodline") ? string.Empty : row.Field <string>("prodline");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }