コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCmsaBase(ref DataRow row, CmsaBase entity)
 {
     row.SetField("prosno", entity.prosno);
     row.SetField("campaigncd", entity.campaigncd);
     row.SetField("answer1", entity.answer1);
     row.SetField("answer2", entity.answer2);
     row.SetField("answer3", entity.answer3);
     row.SetField("answer4", entity.answer4);
     row.SetField("answer5", entity.answer5);
     row.SetField("answer6", entity.answer6);
     row.SetField("pageno", entity.pageno);
     row.SetField("qualifiedfl", entity.qualifiedfl);
     row.SetField("operinit", entity.operinit);
     row.SetField("transtm", entity.transtm);
     row.SetField("transdt", entity.transdt);
     row.SetField("rank1", entity.rank1);
     row.SetField("rank2", entity.rank2);
     row.SetField("rank3", entity.rank3);
     row.SetField("rank4", entity.rank4);
     row.SetField("rank5", entity.rank5);
     row.SetField("rank6", entity.rank6);
     row.SetField("totrank", entity.totrank);
     row.SetField("sequenceno", entity.sequenceno);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("user3", entity.user3);
     row.SetField("user4", entity.user4);
     row.SetField("user5", entity.user5);
     row.SetField("user6", entity.user6);
     row.SetField("user7", entity.user7);
     row.SetField("user8", entity.user8);
     row.SetField("user9", entity.user9);
     row.SetField("transproc", entity.transproc);
     row.SetField("cmsaRowID", entity.rowID.ToByteArray());
 }
コード例 #2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, CmsaBase entity)
 {
     row.SetField("cmsaRowID", entity.rowID.ToByteArray());
 }