예제 #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);
 }
예제 #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);
        }