Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromResendtranslist(ref DataRow row, Resendtranslist entity)
 {
     row.SetField("trans_num", entity.transNum);
     row.SetField("assign_type", entity.assignType);
     row.SetField("resendtranslistuserfield", entity.resendtranslistuserfield);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Resendtranslist BuildResendtranslistFromRow(DataRow row)
        {
            Resendtranslist entity = new Resendtranslist();

            entity.transNum   = row.IsNull("trans_num") ? 0 : row.Field <int>("trans_num");
            entity.assignType = row.IsNull("assign_type") ? string.Empty : row.Field <string>("assign_type");
            entity.resendtranslistuserfield = row.IsNull("resendtranslistuserfield") ? string.Empty : row.Field <string>("resendtranslistuserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }