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

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