Пример #1
0
        public static Coreserialsresults BuildCoreserialsresultsFromRow(DataRow row)
        {
            Coreserialsresults entity = new Coreserialsresults();

            entity.serialno  = row.IsNull("serialno") ? string.Empty : row.Field <string>("serialno");
            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 UpdateRowFromCoreserialsresults(ref DataRow row, Coreserialsresults entity)
 {
     row.SetField("serialno", entity.serialno);
     row.SetField("userfield", entity.userfield);
 }