示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeesdetailclosecriteria(ref DataRow row, Oeesdetailclosecriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("jrnlno", entity.jrnlno);
     row.SetField("totalship", entity.totalship);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Oeesdetailclosecriteria BuildOeesdetailclosecriteriaFromRow(DataRow row)
        {
            Oeesdetailclosecriteria entity = new Oeesdetailclosecriteria();

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