Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromVasectionlookupcriteria(ref DataRow row, Vasectionlookupcriteria entity)
 {
     row.SetField("activeonly", entity.activeonly);
     row.SetField("vano", entity.vano);
     row.SetField("vasuf", entity.vasuf);
     row.SetField("seqno", entity.seqno);
     row.SetField("recordcountlimit", entity.recordcountlimit);
 }
Exemple #2
0
        public static Vasectionlookupcriteria BuildVasectionlookupcriteriaFromRow(DataRow row)
        {
            Vasectionlookupcriteria entity = new Vasectionlookupcriteria();

            entity.activeonly       = row.Field <bool>("activeonly");
            entity.vano             = row.IsNull("vano") ? 0 : row.Field <int>("vano");
            entity.vasuf            = row.IsNull("vasuf") ? 0 : row.Field <int>("vasuf");
            entity.seqno            = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            return(entity);
        }