public static Glsfsetupfcono BuildGlsfsetupfconoFromRow(DataRow row) { Glsfsetupfcono entity = new Glsfsetupfcono(); entity.itemno = row.IsNull("itemno") ? 0 : row.Field <int>("itemno"); entity.cono = row.IsNull("cono") ? 0 : row.Field <int>("cono"); entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield"); return(entity); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromGlsfsetupfcono(ref DataRow row, Glsfsetupfcono entity) { row.SetField("itemno", entity.itemno); row.SetField("cono", entity.cono); row.SetField("userfield", entity.userfield); }