Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromSamultilanguages(ref DataRow row, Samultilanguages entity)
 {
     row.SetField("codeval", entity.codeval);
     row.SetField("descrip", entity.descrip);
     row.SetField("trmgrlang", entity.trmgrlang);
     row.SetField("seqno", entity.seqno);
     row.SetField("defaultfl", entity.defaultfl);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Samultilanguages BuildSamultilanguagesFromRow(DataRow row)
        {
            Samultilanguages entity = new Samultilanguages();

            entity.codeval   = row.IsNull("codeval") ? string.Empty : row.Field <string>("codeval");
            entity.descrip   = row.IsNull("descrip") ? string.Empty : row.Field <string>("descrip");
            entity.trmgrlang = row.IsNull("trmgrlang") ? string.Empty : row.Field <string>("trmgrlang");
            entity.seqno     = row.IsNull("seqno") ? 0 : row.Field <int>("seqno");
            entity.defaultfl = row.Field <bool>("defaultfl");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }