コード例 #1
0
        public static Glinquiryaccountcriteria BuildGlinquiryaccountcriteriaFromRow(DataRow row)
        {
            Glinquiryaccountcriteria entity = new Glinquiryaccountcriteria();

            entity.glno      = row.IsNull("glno") ? string.Empty : row.Field <string>("glno");
            entity.glyear    = row.IsNull("glyear") ? 0 : row.Field <int>("glyear");
            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 UpdateRowFromGlinquiryaccountcriteria(ref DataRow row, Glinquiryaccountcriteria entity)
 {
     row.SetField("glno", entity.glno);
     row.SetField("glyear", entity.glyear);
     row.SetField("userfield", entity.userfield);
 }