Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromKpewprint(ref DataRow row, Kpewprint entity)
 {
     row.SetField("wono", entity.wono);
     row.SetField("wosuf", entity.wosuf);
     row.SetField("allowcancelledwofl", entity.allowcancelledwofl);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Kpewprint BuildKpewprintFromRow(DataRow row)
        {
            Kpewprint entity = new Kpewprint();

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