Exemple #1
0
        public static Glsflookupcriteria BuildGlsflookupcriteriaFromRow(DataRow row)
        {
            Glsflookupcriteria entity = new Glsflookupcriteria();

            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            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 UpdateRowFromGlsflookupcriteria(ref DataRow row, Glsflookupcriteria entity)
 {
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }