示例#1
0
        public static Icserialstripresults BuildIcserialstripresultsFromRow(DataRow row)
        {
            Icserialstripresults entity = new Icserialstripresults();

            entity.serialno = row.IsNull("serialno") ? string.Empty : row.Field <string>("serialno");
            entity.serialstripresultsuserfield = row.IsNull("serialstripresultsuserfield") ? string.Empty : row.Field <string>("serialstripresultsuserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcserialstripresults(ref DataRow row, Icserialstripresults entity)
 {
     row.SetField("serialno", entity.serialno);
     row.SetField("serialstripresultsuserfield", entity.serialstripresultsuserfield);
     row.SetField("userfield", entity.userfield);
 }