Exemple #1
0
        public static Pdecgetpricecostcriteria BuildPdecgetpricecostcriteriaFromRow(DataRow row)
        {
            Pdecgetpricecostcriteria entity = new Pdecgetpricecostcriteria();

            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemple #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdecgetpricecostcriteria(ref DataRow row, Pdecgetpricecostcriteria entity)
 {
     row.SetField("prod", entity.prod);
     row.SetField("whse", entity.whse);
     row.SetField("userfield", entity.userfield);
 }