Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEodrunhist(ref DataRow row, Eodrunhist entity)
 {
     row.SetField("date_time", entity.dateTime);
     row.SetField("rec_type", entity.recType);
     row.SetField("eodrunhistuserfield", entity.eodrunhistuserfield);
     row.SetField("userfield", entity.userfield);
 }
Ejemplo n.º 2
0
        public static Eodrunhist BuildEodrunhistFromRow(DataRow row)
        {
            Eodrunhist entity = new Eodrunhist();

            entity.dateTime            = row.IsNull("date_time") ? string.Empty : row.Field <string>("date_time");
            entity.recType             = row.IsNull("rec_type") ? string.Empty : row.Field <string>("rec_type");
            entity.eodrunhistuserfield = row.IsNull("eodrunhistuserfield") ? string.Empty : row.Field <string>("eodrunhistuserfield");
            entity.userfield           = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }