public static Glsfsetupfbudgetno BuildGlsfsetupfbudgetnoFromRow(DataRow row) { Glsfsetupfbudgetno entity = new Glsfsetupfbudgetno(); entity.itemno = row.IsNull("itemno") ? 0 : row.Field <int>("itemno"); entity.budgetno = row.IsNull("budgetno") ? 0 : row.Field <int>("budgetno"); 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 UpdateRowFromGlsfsetupfbudgetno(ref DataRow row, Glsfsetupfbudgetno entity) { row.SetField("itemno", entity.itemno); row.SetField("budgetno", entity.budgetno); row.SetField("userfield", entity.userfield); }