Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromMultilinesourcing(ref DataRow row, Multilinesourcing entity)
 {
     row.SetField("maintmode", entity.maintmode);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("cLineItemsDataStream", entity.cLineItemsDataStream);
     row.SetField("lReturnFl", entity.lReturnFl);
     row.SetField("customparam", entity.customparam);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Multilinesourcing BuildMultilinesourcingFromRow(DataRow row)
        {
            Multilinesourcing entity = new Multilinesourcing();

            entity.maintmode            = row.Field <bool>("maintmode");
            entity.orderno              = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf             = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.cLineItemsDataStream = row.IsNull("cLineItemsDataStream") ? string.Empty : row.Field <string>("cLineItemsDataStream");
            entity.lReturnFl            = row.Field <bool>("lReturnFl");
            entity.customparam          = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            entity.userfield            = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }