예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdspvendinitcriteria(ref DataRow row, Pdspvendinitcriteria entity)
 {
     row.SetField("clevelcd", entity.clevelcd);
     row.SetField("prod", entity.prod);
     row.SetField("vendno", entity.vendno);
     row.SetField("startdt", entity.startdt);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Pdspvendinitcriteria BuildPdspvendinitcriteriaFromRow(DataRow row)
        {
            Pdspvendinitcriteria entity = new Pdspvendinitcriteria();

            entity.clevelcd  = row.IsNull("clevelcd") ? string.Empty : row.Field <string>("clevelcd");
            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.vendno    = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            entity.startdt   = row.Field <DateTime?>("startdt");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }