コード例 #1
0
        public static Autoprctypelookupcriteria BuildAutoprctypelookupcriteriaFromRow(DataRow row)
        {
            Autoprctypelookupcriteria entity = new Autoprctypelookupcriteria();

            entity.autotype         = row.IsNull("autotype") ? string.Empty : row.Field <string>("autotype");
            entity.recordcountlimit = row.IsNull("recordcountlimit") ? 0 : row.Field <int>("recordcountlimit");
            return(entity);
        }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAutoprctypelookupcriteria(ref DataRow row, Autoprctypelookupcriteria entity)
 {
     row.SetField("autotype", entity.autotype);
     row.SetField("recordcountlimit", entity.recordcountlimit);
 }