Example #1
0
        public static Apeetotlookupcriteria BuildApeetotlookupcriteriaFromRow(DataRow row)
        {
            Apeetotlookupcriteria entity = new Apeetotlookupcriteria();

            entity.reportnm  = row.IsNull("reportnm") ? string.Empty : row.Field <string>("reportnm");
            entity.vendno    = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromApeetotlookupcriteria(ref DataRow row, Apeetotlookupcriteria entity)
 {
     row.SetField("reportnm", entity.reportnm);
     row.SetField("vendno", entity.vendno);
     row.SetField("userfield", entity.userfield);
 }