Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeirapproveorders(ref DataRow row, Oeirapproveorders entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("ccOverrideMsg", entity.ccOverrideMsg);
     row.SetField("ccApprovalfl", entity.ccApprovalfl);
     row.SetField("approvty", entity.approvty);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Oeirapproveorders BuildOeirapproveordersFromRow(DataRow row)
        {
            Oeirapproveorders entity = new Oeirapproveorders();

            entity.orderno       = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf      = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.ccOverrideMsg = row.IsNull("ccOverrideMsg") ? string.Empty : row.Field <string>("ccOverrideMsg");
            entity.ccApprovalfl  = row.Field <bool>("ccApprovalfl");
            entity.approvty      = row.IsNull("approvty") ? string.Empty : row.Field <string>("approvty");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }