Beispiel #1
0
        public static Getcomplistresults BuildGetcomplistresultsFromRow(DataRow row)
        {
            Getcomplistresults entity = new Getcomplistresults();

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