Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSalocaltaxlookupcriteria(ref DataRow row, Salocaltaxlookupcriteria entity)
 {
     row.SetField("state", entity.state);
     row.SetField("taxauth", entity.taxauth);
     row.SetField("recordcountlimit", entity.recordcountlimit);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Salocaltaxlookupcriteria BuildSalocaltaxlookupcriteriaFromRow(DataRow row)
        {
            Salocaltaxlookupcriteria entity = new Salocaltaxlookupcriteria();

            entity.state            = row.IsNull("state") ? string.Empty : row.Field <string>("state");
            entity.taxauth          = row.IsNull("taxauth") ? string.Empty : row.Field <string>("taxauth");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            entity.userfield        = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }