コード例 #1
0
        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);
        }
コード例 #2
0
 /// <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);
 }