public static Glsfsetupsdeptno BuildGlsfsetupsdeptnoFromRow(DataRow row) { Glsfsetupsdeptno entity = new Glsfsetupsdeptno(); entity.deptno = row.IsNull("deptno") ? 0 : row.Field <int>("deptno"); 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 UpdateRowFromGlsfsetupsdeptno(ref DataRow row, Glsfsetupsdeptno entity) { row.SetField("deptno", entity.deptno); row.SetField("userfield", entity.userfield); }