Beispiel #1
0
        public static Glsfsetuphtype BuildGlsfsetuphtypeFromRow(DataRow row)
        {
            Glsfsetuphtype entity = new Glsfsetuphtype();

            entity.itemno    = row.IsNull("itemno") ? 0 : row.Field <int>("itemno");
            entity.descr     = row.IsNull("descr") ? string.Empty : row.Field <string>("descr");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGlsfsetuphtype(ref DataRow row, Glsfsetuphtype entity)
 {
     row.SetField("itemno", entity.itemno);
     row.SetField("descr", entity.descr);
     row.SetField("userfield", entity.userfield);
 }