Exemplo n.º 1
0
        public static Reptgrouplookupcriteria BuildReptgrouplookupcriteriaFromRow(DataRow row)
        {
            Reptgrouplookupcriteria entity = new Reptgrouplookupcriteria();

            entity.batchnm   = row.IsNull("batchnm") ? string.Empty : row.Field <string>("batchnm");
            entity.cono      = row.IsNull("cono") ? 0 : row.Field <int>("cono");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReptgrouplookupcriteria(ref DataRow row, Reptgrouplookupcriteria entity)
 {
     row.SetField("batchnm", entity.batchnm);
     row.SetField("cono", entity.cono);
     row.SetField("userfield", entity.userfield);
 }