示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCreatetoeelmttcriteria(ref DataRow row, Createtoeelmttcriteria entity)
 {
     row.SetField("ordertype", entity.ordertype);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("lineno", entity.lineno);
     row.SetField("bundleid", entity.bundleid);
     row.SetField("setprevfl", entity.setprevfl);
     row.SetField("getbundlefl", entity.getbundlefl);
 }
示例#2
0
        public static Createtoeelmttcriteria BuildCreatetoeelmttcriteriaFromRow(DataRow row)
        {
            Createtoeelmttcriteria entity = new Createtoeelmttcriteria();

            entity.ordertype   = row.IsNull("ordertype") ? string.Empty : row.Field <string>("ordertype");
            entity.orderno     = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf    = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.lineno      = row.IsNull("lineno") ? 0 : row.Field <int>("lineno");
            entity.bundleid    = row.IsNull("bundleid") ? string.Empty : row.Field <string>("bundleid");
            entity.setprevfl   = row.Field <bool>("setprevfl");
            entity.getbundlefl = row.Field <bool>("getbundlefl");
            return(entity);
        }