Beispiel #1
0
        public static Oeinitcreateprodresults BuildOeinitcreateprodresultsFromRow(DataRow row)
        {
            Oeinitcreateprodresults entity = new Oeinitcreateprodresults();

            entity.fieldname  = row.IsNull("fieldname") ? string.Empty : row.Field <string>("fieldname");
            entity.fieldvalue = row.IsNull("fieldvalue") ? string.Empty : row.Field <string>("fieldvalue");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOeinitcreateprodresults(ref DataRow row, Oeinitcreateprodresults entity)
 {
     row.SetField("fieldname", entity.fieldname);
     row.SetField("fieldvalue", entity.fieldvalue);
     row.SetField("userfield", entity.userfield);
 }