Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAosystemlanguage(ref DataRow row, Aosystemlanguage entity)
 {
     row.SetField("trmgrlang", entity.trmgrlang);
     row.SetField("descrip", entity.descrip);
     row.SetField("codeval", entity.codeval);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Aosystemlanguage BuildAosystemlanguageFromRow(DataRow row)
        {
            Aosystemlanguage entity = new Aosystemlanguage();

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