コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromGliabdgcmpcriteria(ref DataRow row, Gliabdgcmpcriteria entity)
 {
     row.SetField("glno", entity.glno);
     row.SetField("glyear", entity.glyear);
     row.SetField("glbdgyr", entity.glbdgyr);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Gliabdgcmpcriteria BuildGliabdgcmpcriteriaFromRow(DataRow row)
        {
            Gliabdgcmpcriteria entity = new Gliabdgcmpcriteria();

            entity.glno      = row.IsNull("glno") ? string.Empty : row.Field <string>("glno");
            entity.glyear    = row.IsNull("glyear") ? 0 : row.Field <int>("glyear");
            entity.glbdgyr   = row.IsNull("glbdgyr") ? 0 : row.Field <int>("glbdgyr");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }