Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSasselookupcriteria(ref DataRow row, Sasselookupcriteria entity)
 {
     row.SetField("errorno", entity.errorno);
     row.SetField("errormsg", entity.errormsg);
     row.SetField("trmgrlang", entity.trmgrlang);
     row.SetField("lalllanguages", entity.lalllanguages);
     row.SetField("recordlimit", entity.recordlimit);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Sasselookupcriteria BuildSasselookupcriteriaFromRow(DataRow row)
        {
            Sasselookupcriteria entity = new Sasselookupcriteria();

            entity.errorno       = row.IsNull("errorno") ? 0 : row.Field <int>("errorno");
            entity.errormsg      = row.IsNull("errormsg") ? string.Empty : row.Field <string>("errormsg");
            entity.trmgrlang     = row.IsNull("trmgrlang") ? string.Empty : row.Field <string>("trmgrlang");
            entity.lalllanguages = row.Field <bool>("lalllanguages");
            entity.recordlimit   = row.IsNull("recordlimit") ? 0 : row.Field <int>("recordlimit");
            entity.userfield     = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }