Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPoheaderretrievecriteria(ref DataRow row, Poheaderretrievecriteria entity)
 {
     row.SetField("pono", entity.pono);
     row.SetField("posuf", entity.posuf);
     row.SetField("secure", entity.secure);
     row.SetField("maintmode", entity.maintmode);
     row.SetField("updatetype", entity.updatetype);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Poheaderretrievecriteria BuildPoheaderretrievecriteriaFromRow(DataRow row)
        {
            Poheaderretrievecriteria entity = new Poheaderretrievecriteria();

            entity.pono       = row.IsNull("pono") ? 0 : row.Field <int>("pono");
            entity.posuf      = row.IsNull("posuf") ? 0 : row.Field <int>("posuf");
            entity.secure     = row.IsNull("secure") ? 0 : row.Field <int>("secure");
            entity.maintmode  = row.Field <bool>("maintmode");
            entity.updatetype = row.IsNull("updatetype") ? string.Empty : row.Field <string>("updatetype");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }