コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlperiodrangesresults(ref DataRow row, Glperiodrangesresults entity)
 {
     row.SetField("seqno", entity.seqno);
     row.SetField("period", entity.period);
     row.SetField("datefrom", entity.datefrom);
     row.SetField("datethru", entity.datethru);
 }
コード例 #2
0
        public static Glperiodrangesresults BuildGlperiodrangesresultsFromRow(DataRow row)
        {
            Glperiodrangesresults entity = new Glperiodrangesresults();

            entity.seqno    = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.period   = row.IsNull("period") ? string.Empty : row.Field <string>("period");
            entity.datefrom = row.IsNull("datefrom") ? string.Empty : row.Field <string>("datefrom");
            entity.datethru = row.IsNull("datethru") ? string.Empty : row.Field <string>("datethru");
            return(entity);
        }