예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromEtccdocliststdcriteria(ref DataRow row, Etccdocliststdcriteria entity)
 {
     row.SetField("refer", entity.refer);
     row.SetField("custpo", entity.custpo);
     row.SetField("whse", entity.whse);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Etccdocliststdcriteria BuildEtccdocliststdcriteriaFromRow(DataRow row)
        {
            Etccdocliststdcriteria entity = new Etccdocliststdcriteria();

            entity.refer     = row.IsNull("refer") ? string.Empty : row.Field <string>("refer");
            entity.custpo    = row.IsNull("custpo") ? string.Empty : row.Field <string>("custpo");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }