Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromKpewupdate(ref DataRow row, Kpewupdate entity)
 {
     row.SetField("wono", entity.wono);
     row.SetField("wosuf", entity.wosuf);
     row.SetField("compreqerrorfl", entity.compreqerrorfl);
     row.SetField("snlotserrorfl", entity.snlotserrorfl);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Kpewupdate BuildKpewupdateFromRow(DataRow row)
        {
            Kpewupdate entity = new Kpewupdate();

            entity.wono           = row.IsNull("wono") ? 0 : row.Field <int>("wono");
            entity.wosuf          = row.IsNull("wosuf") ? 0 : row.Field <int>("wosuf");
            entity.compreqerrorfl = row.Field <bool>("compreqerrorfl");
            entity.snlotserrorfl  = row.IsNull("snlotserrorfl") ? string.Empty : row.Field <string>("snlotserrorfl");
            entity.userfield      = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }