Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromResendtranssummary(ref DataRow row, Resendtranssummary entity)
 {
     row.SetField("trans_type", entity.transType);
     row.SetField("trans_name", entity.transName);
     row.SetField("trans_count", entity.transCount);
     row.SetField("resendtranssummaryuserfield", entity.resendtranssummaryuserfield);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Resendtranssummary BuildResendtranssummaryFromRow(DataRow row)
        {
            Resendtranssummary entity = new Resendtranssummary();

            entity.transType  = row.IsNull("trans_type") ? string.Empty : row.Field <string>("trans_type");
            entity.transName  = row.IsNull("trans_name") ? string.Empty : row.Field <string>("trans_name");
            entity.transCount = row.IsNull("trans_count") ? 0 : row.Field <int>("trans_count");
            entity.resendtranssummaryuserfield = row.IsNull("resendtranssummaryuserfield") ? string.Empty : row.Field <string>("resendtranssummaryuserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }