예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVaappliedlaborsectionslist(ref DataRow row, Vaappliedlaborsectionslist entity)
 {
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("costsetfl", entity.costsetfl);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Vaappliedlaborsectionslist BuildVaappliedlaborsectionslistFromRow(DataRow row)
        {
            Vaappliedlaborsectionslist entity = new Vaappliedlaborsectionslist();

            entity.vano      = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf     = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.seqno     = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.costsetfl = row.Field <bool>("costsetfl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }